summaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-07-26 21:31:35 +0000
committerJakub Jelinek <jakub@redhat.com>2011-07-26 21:31:35 +0000
commit40cfdfb56058f10a066a81870564700a4b006b55 (patch)
treee7eee9635566fb90812721c9ecc1410ae16410ce /binutils/readelf.c
parentd2bae10fec22f0fbc9d1f689e02b8010d0f81dfc (diff)
downloadbinutils-redhat-40cfdfb56058f10a066a81870564700a4b006b55.tar.gz
* 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 1191aebfb1..a9064c541f 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"))
)