[haiku-bugs] Re: [Haiku] #12729: [Debugger] Add some missing features with respect to core filesupport

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 27 Apr 2016 13:20:09 -0000

#12729: [Debugger] Add some missing features with respect to core filesupport
-------------------------------------+----------------------------
   Reporter:  anevilyak              |      Owner:  anevilyak
       Type:  enhancement            |     Status:  closed
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:  fixed                  |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:11 anevilyak]:

One point that's unclear to me for this: Since, based on the
 aforementioned debug case, we are in fact loading the corresponding
 executable image as well, is there any reason the core file needs to be
 used for symbols rather than reading them from said image like usual? I
 assume that's only necessary so one can analyze the core in the absence of
 having a local copy of the executable in question?

 The latter is one reason. There are also images (well, one image, the
 "commpage") without a corresponding file. That's why symbols are fetched
 via the `DebuggerInterface`, which should know how to retrieve the
 information. In the local case the implementation does indeed open the
 shared object file, if available, falling back to reading the runtime
 loader information from the team's memory. We can do pretty much the same
 for core files -- with the distinction that we can't use the debug kit
 code and that the team memory is more readily available. It probably makes
 most sense to port the relevant debug kit code to Debugger and make it
 bitness, endianess, and access method agnostic.

 Moreover we'll need an indication that an image is possibly or definitely
 not local and do file path mapping in this case.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12729#comment:12>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: