Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread David Blaikie via Dwarf-Discuss
Anyone know of any existing DWARF producers that use segmented addressing? Might be interesting to see how they're using the features. On Thu, Jul 16, 2020 at 9:30 AM Michael Eager wrote: > On 7/15/20 9:49 PM, David Blaikie wrote: > > > > > > On Wed, Jul 15, 2020 at 7:07 PM Michael Eager via Dwa

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread David Blaikie via Dwarf-Discuss
On Thu, Jul 16, 2020 at 6:35 PM Michael Eager wrote: > On 7/16/20 5:37 PM, David Blaikie wrote: > > > > > > On Thu, Jul 16, 2020 at 4:25 PM Michael Eager > > The language used to describe segmented addressing in DW_AT_segment > > reads to me like the same language used to describe segmented addr

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread Michael Eager via Dwarf-Discuss
On 7/16/20 5:37 PM, David Blaikie wrote: On Thu, Jul 16, 2020 at 4:25 PM Michael Eager The language used to describe segmented addressing in DW_AT_segment reads to me like the same language used to describe segmented addresses in debug_aranges - it reads to me like they refer to the same co

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread David Blaikie via Dwarf-Discuss
On Thu, Jul 16, 2020 at 4:25 PM Michael Eager wrote: > On 7/16/20 2:57 PM, David Blaikie wrote: > > > > > > On Thu, Jul 16, 2020 at 2:05 PM Michael Eager > > > You appear to be starting with a counterfactual premise and using > that > > to postulate a problem where none exists. > > > > >

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread Michael Eager via Dwarf-Discuss
On 7/16/20 2:57 PM, David Blaikie wrote: On Thu, Jul 16, 2020 at 2:05 PM Michael Eager You appear to be starting with a counterfactual premise and using that to postulate a problem where none exists. Sorry - I seem to be misunderstanding what you mean by "there are no restrictions

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread David Blaikie via Dwarf-Discuss
On Thu, Jul 16, 2020 at 2:05 PM Michael Eager wrote: > On 7/16/20 1:36 PM, David Blaikie wrote: > > > > > > On Thu, Jul 16, 2020 at 1:07 PM Michael Eager > > wrote: > > > > > Perhaps it's more like Paul was postulating - that the spec > > assumes code > >

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread Michael Eager via Dwarf-Discuss
On 7/16/20 1:36 PM, David Blaikie wrote: On Thu, Jul 16, 2020 at 1:07 PM Michael Eager > wrote: > Perhaps it's more like Paul was postulating - that the spec assumes code > is in a code segment/doesn't need to be clarified. (but that gets a bit

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread David Blaikie via Dwarf-Discuss
On Thu, Jul 16, 2020 at 1:07 PM Michael Eager wrote: > > Perhaps it's more like Paul was postulating - that the spec assumes code > > is in a code segment/doesn't need to be clarified. (but that gets a bit > > confused in debug_aranges - if it only is meant to contain code (not > > data), why doe

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread Michael Eager via Dwarf-Discuss
Perhaps it's more like Paul was postulating - that the spec assumes code is in a code segment/doesn't need to be clarified. (but that gets a bit confused in debug_aranges - if it only is meant to contain code (not data), why does it need a segment selector - and also in the DIEs - if code is al

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-16 Thread Michael Eager via Dwarf-Discuss
On 7/15/20 9:49 PM, David Blaikie wrote: On Wed, Jul 15, 2020 at 7:07 PM Michael Eager via Dwarf-Discuss > wrote: Segmented addresses have been in the DWARF specification since Version 2   and AFAIK have not been changed since that time. 

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread David Blaikie via Dwarf-Discuss
On Wed, Jul 15, 2020 at 8:00 PM Xing GUO wrote: > Hi David, > > On 7/16/20, David Blaikie wrote: > > Looking at how segment selectors work: > > > > DW_AT_segment: Applies to a DIE subtree, including any ranges, high/low > pc, > > locations, labels, etc > > debug_range/loc (v4 and below): Doesn't

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread David Blaikie via Dwarf-Discuss
On Wed, Jul 15, 2020 at 7:07 PM Michael Eager via Dwarf-Discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > Segmented addresses have been in the DWARF specification since Version 2 > and AFAIK have not been changed since that time. DWARF V5 did not add > any functionality to segmented addresse

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread Xing GUO via Dwarf-Discuss
Hi David, On 7/16/20, David Blaikie wrote: > Looking at how segment selectors work: > > DW_AT_segment: Applies to a DIE subtree, including any ranges, high/low pc, > locations, labels, etc > debug_range/loc (v4 and below): Doesn't seem to allow specifying segment > variation - inherits from the s

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread Michael Eager via Dwarf-Discuss
Segmented addresses have been in the DWARF specification since Version 2 and AFAIK have not been changed since that time. DWARF V5 did not add any functionality to segmented addresses that was not present in DWARF V2/3. At least, there was no intention to do so. Segmented addresses are desc

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread David Blaikie via Dwarf-Discuss
Looking at how segment selectors work: DW_AT_segment: Applies to a DIE subtree, including any ranges, high/low pc, locations, labels, etc debug_range/loc (v4 and below): Doesn't seem to allow specifying segment variation - inherits from the segment given on the nearest parent DIE that refers to th

Re: [Dwarf-Discuss] Segment selectors for the range list table.

2020-07-15 Thread Robinson, Paul via Dwarf-Discuss
> -Original Message- > From: Dwarf-Discuss On Behalf > Of Xing GUO via Dwarf-Discuss > Sent: Tuesday, July 14, 2020 10:39 PM > To: dwarf-discuss@lists.dwarfstd.org > Subject: [Dwarf-Discuss] Segment selectors for the range list table. > > Hi there, > > The DWARFv5 spec mentioned that