Re: Split DWARF and rnglists, gcc vs clang

2020-11-13 Thread Mark Wielaard
Hi Simon, On Fri, 2020-11-13 at 10:41 -0500, Simon Marchi wrote: > So in the end the logical thing to do when encountering a > DW_FORM_rnglistx in a split-unit, in order to support everybody, is > probably to go to the .debug_rnglists.dwo section, if there's one, > disregarding the (inherited) DW_

Re: Split DWARF and rnglists, gcc vs clang

2020-11-13 Thread Simon Marchi via Gcc
On 2020-11-13 10:18 a.m., Mark Wielaard wrote: > That too, but I was actually referring to the sections that define > Range List and Location List Tables (7.28 and 7.29) which define the > meaning of DW_AT_rnglists_base and DW_AT_loclists_base. But you could > also look at 3.1.3 Split Full Compilat

Re: Split DWARF and rnglists, gcc vs clang

2020-11-13 Thread Mark Wielaard
Hi Simon, On Fri, 2020-11-13 at 09:45 -0500, Simon Marchi wrote: > I think I would have asked the question the other way around :) The > > spec explicitly describes rnglists_base (and loclists_base) as a way > > to reference ranges (loclists) through the index table, so that the > > only relocatio

Re: Split DWARF and rnglists, gcc vs clang

2020-11-13 Thread Simon Marchi via Gcc
On 2020-11-12 7:11 p.m., Mark Wielaard wrote: > Hi Simon, > > On Thu, Nov 05, 2020 at 11:11:43PM -0500, Simon Marchi wrote: >> I'm currently squashing some bugs related to .debug_rnglists in GDB, and >> I happened to notice that clang and gcc do different things when >> generating rnglists with spl