aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-07-26 21:31:37 +0000
committerJakub Jelinek <jakub@redhat.com>2011-07-26 21:31:37 +0000
commit4ccf1e317a7df0e94f1c5f2adc52c4c92b937e65 (patch)
treea5911123572e8bf79308109afe310cdba914e8f5 /binutils/readelf.c
parent5005c8a90ab7a7eb5320d53cf6b8e57ca8f71b2b (diff)
downloadgdb-4ccf1e317a7df0e94f1c5f2adc52c4c92b937e65.zip
gdb-4ccf1e317a7df0e94f1c5f2adc52c4c92b937e65.tar.gz
gdb-4ccf1e317a7df0e94f1c5f2adc52c4c92b937e65.tar.bz2
* dwarf2.c (dwarf_debug_sections): Add .debug_macro
and .zdebug_macro entry. (dwarf_debug_section_enum): Add debug_macro. * NEWS: Mention .debug_macro support. * dwarf.c (read_and_display_attr_value): Don't print a tab if attribute is 0. (get_AT_name): Handle DW_AT_GNU_macros. (get_line_filename_and_dirname, display_debug_macro): New functions. (debug_displays): Add an entry for .debug_macro and .zdebug_macro. * readelf.c (process_section_headers): With do_debug_macinfo handle also .debug_macro sections. * dwarf.h (dwarf_section_display_enum): Add macro.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 1191aeb..a9064c5 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4620,6 +4620,7 @@ process_section_headers (FILE * file)
|| (do_debug_ranges && streq (name, "ranges"))
|| (do_debug_frames && streq (name, "frame"))
|| (do_debug_macinfo && streq (name, "macinfo"))
+ || (do_debug_macinfo && streq (name, "macro"))
|| (do_debug_str && streq (name, "str"))
|| (do_debug_loc && streq (name, "loc"))
)