[PATCH] Increasing support for dwarf 5

Simon Marchi simark@simark.ca
Mon Aug 26 01:46:00 GMT 2019

On 2019-08-25 5:47 p.m., Ali Tamur via gdb-patches wrote:
> (In the items below, "now" means "in dwarf 5").
> * Support for .debug_str_offsets section:
>   -  str_offsets_base attribute
> * string and address indexes that point to an entry in .debug_str_offsets
> and
> .addr_offsets need special handling because they need .str_offsets_base and
> addr_base attributes be known at the time, however, those attributes may
> occur
> later in the DIE. So, such attributes need to be reprocessed after other
> parts
> of the DIE are parsed.
> * DW_FORM_GNU_str_index, DW_FORM_strx and other similar forms can also occur
> in .dwo files. Likewise for DW_FORM_GNU_addr_index and DW_FORM_addrx.
> * DW_UT_skeleton and DW_UT_split_compile compilation units also have
> signatures
> to match the compilation unit in the skeleton and .dwo files. The signature
> is
> part of the header.
> * DW_AT_dwo_name is a new name for DW_AT_GNU_dwo_name.
> * File and directory indexes in line table are now zero based.
> * Line table header has new fields.
> * Adding support for DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile
> compilation units.
> After these changes, gdb is able to process a 'hello world' program compiled
> with -gdwarf-5 flag. It is also able to support an additional -gsplit-dwarf
> flag. As future work, it does not yet support address and range lists, also
> type units may be lacking some support.

Hi Ali,

Thanks for the patch.  I am having troubles applying it, however, as it seems to have been reformatted
by your email client.  Could you please try to send it using git-send-email?  It pretty much guarantees
that it will apply fine on the other end.

Also, it seems that this patch contains multiple independent changes.  If so, could you please split it
in multiple patches, which can be part of the same series?  It will help with the reviewing.

If you need more help on how to do any of those, feel free to ask.


More information about the Gdb-patches mailing list