aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.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 /bfd/dwarf2.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 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 02e69a8..3cd2f7d 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -287,6 +287,7 @@ const struct dwarf_debug_section dwarf_debug_sections[] =
{ ".debug_line", ".zdebug_line" },
{ ".debug_loc", ".zdebug_loc" },
{ ".debug_macinfo", ".zdebug_macinfo" },
+ { ".debug_macro", ".zdebug_macro" },
{ ".debug_pubnames", ".zdebug_pubnames" },
{ ".debug_pubtypes", ".zdebug_pubtypes" },
{ ".debug_ranges", ".zdebug_ranges" },
@@ -314,6 +315,7 @@ enum dwarf_debug_section_enum
debug_line,
debug_loc,
debug_macinfo,
+ debug_macro,
debug_pubnames,
debug_pubtypes,
debug_ranges,