diff options
author | Nick Clifton <nickc@redhat.com> | 2021-02-25 17:50:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-02-25 17:50:44 +0000 |
commit | e38332c286bb96026fadc128170303cc4e935225 (patch) | |
tree | 1a1d7c9ce4a753f7cf5467ee13dc27e34e62a3d8 /binutils/readelf.c | |
parent | d4ff3cbfdb361a1c3a16425c084cdd2ff8535cfd (diff) | |
download | gdb-e38332c286bb96026fadc128170303cc4e935225.zip gdb-e38332c286bb96026fadc128170303cc4e935225.tar.gz gdb-e38332c286bb96026fadc128170303cc4e935225.tar.bz2 |
Add initial support for .debug_sup sections.
* 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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 811c529..7c8496c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6556,7 +6556,8 @@ process_section_headers (Filedata * filedata) if ((do_debugging || do_debug_info || do_debug_abbrevs || do_debug_lines || do_debug_pubnames || do_debug_pubtypes || do_debug_aranges || do_debug_frames || do_debug_macinfo - || do_debug_str || do_debug_str_offsets || do_debug_loc || do_debug_ranges + || do_debug_str || do_debug_str_offsets || do_debug_loc + || do_debug_ranges || do_debug_addr || do_debug_cu_index || do_debug_links) && (const_strneq (name, ".debug_") || const_strneq (name, ".zdebug_"))) @@ -6583,6 +6584,7 @@ process_section_headers (Filedata * filedata) || (do_debug_macinfo && const_strneq (name, "macinfo")) || (do_debug_macinfo && const_strneq (name, "macro")) || (do_debug_str && const_strneq (name, "str")) + || (do_debug_links && const_strneq (name, "sup")) || (do_debug_str_offsets && const_strneq (name, "str_offsets")) || (do_debug_loc && const_strneq (name, "loc")) || (do_debug_loc && const_strneq (name, "loclists")) |