From 459d52c84aa5eee986006b793794e382861c073d Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 7 Nov 2013 14:58:41 -0800 Subject: Add pretty-printing of .debug_gnu_pubnames, .debug_gnu_pubtypes. * dwarf.c (get_gdb_index_symbol_kind_name): New function. (display_debug_pubnames_worker): Renamed from display_debug_pubnames. Add support for .debug_gnu_pubnames, .debug_gnu_pubtypes. (display_debug_pubnames, display_debug_pubnames_gnu): New functions. (display_gdb_index): Redo printing of symbol kind. (debug_displays): Add .debug_gnu_pubnames, .debug_gnu_pubtypes. * dwarf.h (dwarf_section_display_enum): Add gnu_pubnames, gnu_pubtypes. * readelf.c (process_section_headers): Add gnu_pubnames, gnu_pubtypes. --- binutils/dwarf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'binutils/dwarf.h') diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 68e93f1..1cd4201 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -108,6 +108,8 @@ typedef struct } DWARF2_Internal_ARange; +/* N.B. The order here must match the order in debug_displays. */ + enum dwarf_section_display_enum { abbrev = 0, @@ -116,12 +118,14 @@ enum dwarf_section_display_enum info, line, pubnames, + gnu_pubnames, eh_frame, macinfo, macro, str, loc, pubtypes, + gnu_pubtypes, ranges, static_func, static_vars, -- cgit v1.1