Commit: Add initial support for .debug_sup sections
Nick Clifton
nickc@redhat.com
Thu Feb 25 17:50:31 GMT 2021
Hi Guys,
I am checking in the attached patch to add initial support for the
DWARF-5 .debug_sup section to readelf & objdump. The patch allows
the contents of the new section to be dumped with the
--debug-dump=links option, and followed with the --debug-dump=follow
option. (Or automatically now that this last option is enabled by
default).
The patch recognizes the new DW_FORM_ref_sup4, DW_FORM_ref_sup8 and
DW_FORM_strp_sup forms, but it does not process them correctly at
the moment. This will be the subject of a follow-up patch.
Cheers
Nick
binutils/ChangeLog
2021-02-25 Nick Clifton <nickc@redhat.com>
* dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
forms.
(read_and_display_attr_value): Handle sup forms.
(display_debug_sup): New function. Displays the contents of a
.debug_sup section.
(load_debug_sup_file): New function. Loads the contents of a file
referenced by a .debug_sup section.
(check_for_and_load_links): Call load_debug_sup_file.
(debug_displays): Add entry for .debug_sup.
* dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
* readelf.c (process_section_headers): Add support for debug_sup.
* doc/debug.options.texi: Note that the =links option will display
the contents of .debug_sup sections.
* NEWS: Mention the new support.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_sup.patch
Type: text/x-patch
Size: 10830 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210225/66b0adba/attachment.bin>
More information about the Binutils
mailing list