[Dwarf-Discuss] Split Dwarf vs. CU DW_AT_ranges / DW_AT_low_pc placement

David Blaikie dblaikie@gmail.com
Thu Mar 11 06:07:27 GMT 2021


On Wed, Mar 10, 2021 at 9:38 PM Jakub Jelinek <jakub at redhat.com> wrote:

> On Wed, Mar 10, 2021 at 04:12:57PM -0800, David Blaikie via Dwarf-Discuss
> wrote:
> > On Wed, Mar 10, 2021 at 4:02 PM Cary Coutant <ccoutant at gmail.com> 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_AT_rnglists_base.  If there isn't,
> then
> > > > > try the linked file's .debug_rnglists section, using
> > > > > DW_AT_rnglists_base.  If there isn't, then something is malformed.
> > >
> > > Looks reasonable to me. I think we need a new issue to clarify this in
> > > DWARF 6.
> > >
> >
> > Given that DWARFv5 isn't on by default in GCC yet & I think has a few
> more
>
> It is on by default.  But -gstrict-dwarf is not on by default.
>

Oh, it is - in a released version of the compiler, or only in development?

& you're proposing changing the behavior only under -gstrict-dwarf, rather
than in general? Any particular reason?

- Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/attachments/20210310/f160e97e/attachment.html>



More information about the Dwarf-discuss mailing list