* dwarf2.c (dwarf_debug_sections): Add .debug_macro
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index 38268561fb0fd24cb761a91b0aaa96916e234397..3cd2f7d7d46b39a4b56c1ec5a130f0e273b3d96b 100644 (file)
@@ -278,7 +278,7 @@ struct attr_abbrev
 /* Map of uncompressed DWARF debug section name to compressed one.  It
    is terminated by NULL uncompressed_name.  */
 
-struct dwarf_debug_section dwarf_debug_sections[] =
+const struct dwarf_debug_section dwarf_debug_sections[] =
 {
   { ".debug_abbrev",           ".zdebug_abbrev" },
   { ".debug_aranges",          ".zdebug_aranges" },
@@ -287,6 +287,7 @@ 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,
@@ -2164,6 +2166,7 @@ scan_unit_for_symbols (struct comp_unit *unit)
                  break;
 
                case DW_AT_abstract_origin:
+               case DW_AT_specification:
                  func->name = find_abstract_instance_name (unit, &attr);
                  break;
 
This page took 0.02528 seconds and 4 git commands to generate.