diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-07-02 22:15:05 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-07-02 22:15:05 +0200 |
commit | 613643582c4f6145063fe1522d57bd01fe7bba02 (patch) | |
tree | 40bb1d145f50a2b4b92417d42fb0a725091447d2 /binutils/readelf.c | |
parent | de837d77bca30483e8e926044fa497e3d49f7972 (diff) |
DWARF-5: readelf: .debug_names
Display DWARF-5 .debug_names (standardized .gdb_index).
binutils/ChangeLog
2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf.c: Include assert.h.
(MAX, MIN, get_IDX_name, display_debug_names): New.
(debug_displays): Add .debug_names.
* dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
* readelf.c (process_section_headers): Add ".debug_names".
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 90af7cc39c..b2f75c0048 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6060,7 +6060,8 @@ process_section_headers (FILE * file) request_dump_bynumber (i, DEBUG_DUMP); else if (do_debug_frames && streq (name, ".eh_frame")) request_dump_bynumber (i, DEBUG_DUMP); - else if (do_gdb_index && streq (name, ".gdb_index")) + else if (do_gdb_index && (streq (name, ".gdb_index") + || streq (name, ".debug_names"))) request_dump_bynumber (i, DEBUG_DUMP); /* Trace sections for Itanium VMS. */ else if ((do_debugging || do_trace_info || do_trace_abbrevs |