Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-29 Thread Jayvee Neumann via Dwarf-Discuss
Thank you Ron and thank you Michael, this explanation helps me a lot. I think I do not have to support 286 and 386 in 16bit mode. So, this simplifies things a lot. Kind regards Jayvee Am Sa., 28. Sept. 2019 um 00:04 Uhr schrieb Michael Eager : > On 9/27/19 1:29 AM, Jayvee Neumann wrote: > > Tha

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.

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

Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-26 Thread Michael Eager 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 handle it, yet. It can appear in a DIE (or its parent) whenever DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges, DW_AT_entry_pc, o

Re: [Dwarf-Discuss] DW_AT_segment and relocation

2019-09-26 Thread Ron Brender via Dwarf-Discuss
Jayvee, Your question seems quite clear. I hope this response is equally so. First off, the segment attribute names a register, whose contents is added to the address value computed by the other address expression. So in a real sense, a pair of attributes like DW_AT_segment and DW_AT_pc forms "ju

[Dwarf-Discuss] DW_AT_segment and relocation

2019-09-26 Thread Jayvee Neumann via Dwarf-Discuss
Dear DWARF experts, I have a question regarding the attribute DW_AT_segment. I do not quite understand how to handle it, yet. It can appear in a DIE (or its parent) whenever DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges, DW_AT_entry_pc, or a location description that evaluates to an Address are used.