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.
This commit is contained in:
Doug Evans
2013-11-07 14:58:41 -08:00
parent fcb8d9c2f4
commit 459d52c84a
4 changed files with 86 additions and 36 deletions

View File

@ -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,