[Dwarf-Discuss] split dwarf, dwo, package files

David Blaikie dblaikie@gmail.com
Fri Jul 26 20:16:14 GMT 2019


On Thu, Jul 25, 2019 at 10:16 AM David Anderson <davea42 at linuxmail.org>
wrote:

> On 7/25/19 8:12 AM, David Blaikie wrote:
> >
> >     No  examples in F.2 F.3  show the corresponding compllation-unit
> >     header
> >     unit_type.   Which leaves open the question of what the
> >     compilation-unit
> >     header unit_type is in the examples.
> >
> >
> > Are you uncertain as to which unit_type would be used in which unit in
> > the examples (after having read Section 7)? Or is it that you know the
> > answer now, and it would've been easier/faster to find if the examples
> > had been more explicit?
>
> At the moment, yes.
>

OK:

DW_UT_compile -> DW_TAG_compile_unit (in debug_info)
DW_UT_type -> DW_TAG_type_unit (in debug_info)
DW_UT_partial -> DW_TAG_partial_unit (in debug_info)
DW_UT_skeleton -> DW_TAG_skeleton_unit (in debug_info)
DW_UT_split_unit -> DW_TAG_compile_unit (in debug_info.dwo)
DW_UT_split_type -> DW_TAG_type_unit (in debug_info.dwo)

(this mapping comes from 7.5.1.* bullet 3 (unit_type))

Is that sufficient information to address your uncertainty? Or are there
other questions/have I misunderstood your uncertainty?


>
> >
> > (it seems there's limited ambiguity from section 7 - such that the
> > examples don't need to clarify much in this regard, but yeah - seems
> > OK to me that they could describe the header now that the header's a
> > bit more complicated)
>
> Until DWARF 5 there was really no issue in this regard.
>
> Ensuring that examples for which the compilation-unit DIE TAG and/or
> unit_type matter
> mention both values would help standard-readers.
> Help is what examples are for :-)
>
> Thanks.
> DavidA
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/attachments/20190726/47100ad1/attachment.html>



More information about the Dwarf-discuss mailing list