[Dwarf-Discuss] Notification

2019-09-27 Thread servicedesk--- via Dwarf-Discuss
>>>: >>> >>>> On 9/26/19 3:33 AM, Jayvee Neumann via Dwarf-Discuss wrote: >>>> > Dear DWARF experts, >>>> > >>>> > I have a question regarding the attribute DW_AT_segment. I do not quite >>>> > understand how to

Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-27 Thread Michael Eager via Dwarf-Discuss
On 9/27/19 1:29 AM, Jayvee Neumann wrote: Thank you Michael and Ron, what I am trying to do is write a consumer that is able to handle images from several targets: i386, AMD64, and also ARM. The target images will be loaded and running (and debugged during run-time). I want to find a way to ha

Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-27 Thread Ron Brender via Dwarf-Discuss
Jayvee, If you are dealing with a linear 32- or 64-bit address space then there are no segments to worry about, so the question is moot. If you are dealing with a segmented address space, then the problems you describe are exactly those that debuggers on segmented machine dealt with all the time.

[Dwarf-Discuss] Notification

2019-09-27 Thread servicedesk--- via Dwarf-Discuss
gt; > >>> > Assume, I have an attribute DW_AT_low_pc. If there is no DW_AT_segment, >>> > this attribute is simply the low_pc as it was determined during >>> > compile-time. While debugging, this value has to be relocated if the >>> > image had be

[Dwarf-Discuss] Notification

2019-09-27 Thread servicedesk--- via Dwarf-Discuss
Evaluating the expression could also >> > incorporate the usage of run-time information and relocated addresses >> > (i.e. the DS/CS/SS registers). >> > >> > I hope I was able to articulate my question well, English is not my >> > native languag

Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-27 Thread Jayvee Neumann via Dwarf-Discuss
Thank you Michael and Ron, what I am trying to do is write a consumer that is able to handle images from several targets: i386, AMD64, and also ARM. The target images will be loaded and running (and debugged during run-time). I want to find a way to handle addresses in a simple way, abstracting fr