]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Merge over dwarf string fixes from readelf master to dwarfstrings.
authorMark Wielaard <mjw@redhat.com>
Fri, 25 Feb 2011 12:04:21 +0000 (13:04 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 25 Feb 2011 12:11:41 +0000 (13:11 +0100)
* src/dwarfstrings.c (dwarf_tag_string): Add type_unit,
rvalue_reference_type and template_alias.
(dwarf_tag_string): Add GNU_* tags.
(dwarf_attr_string): Add signature, main_subprogram, const_expr
and enum_class.

src/dwarfstrings.c

index b340f026e79db92880d90cd7f2513b962b32d022..3909e1311cffc9404b3cdaf1a26b7e56d5335cc7 100644 (file)
@@ -97,6 +97,9 @@ dwarf_tag_string (unsigned int tag)
       [DW_TAG_mutable_type] = "mutable_type",
       [DW_TAG_condition] = "condition",
       [DW_TAG_shared_type] = "shared_type",
+      [DW_TAG_type_unit] = "type_unit",
+      [DW_TAG_rvalue_reference_type] = "rvalue_reference_type",
+      [DW_TAG_template_alias] = "template_alias",
     };
   const unsigned int nknown_tags = (sizeof (known_tags)
                                    / sizeof (known_tags[0]));
@@ -126,6 +129,26 @@ dwarf_tag_string (unsigned int tag)
        result = "class_template";
        break;
 
+      case DW_TAG_GNU_BINCL:
+       result = "GNU_BINCL";
+       break;
+
+      case DW_TAG_GNU_EINCL:
+       result = "GNU_EINCL";
+       break;
+
+      case DW_TAG_GNU_template_template_param:
+       result = "GNU_template_template_param";
+       break;
+
+      case DW_TAG_GNU_template_parameter_pack:
+       result = "GNU_template_parameter_pack";
+       break;
+
+      case DW_TAG_GNU_formal_parameter_pack:
+       result = "GNU_formal_parameter_pack";
+       break;
+
       default:
        if (tag < DW_TAG_lo_user)
          snprintf (buf, sizeof buf, gettext ("unknown tag %hx"), tag);
@@ -233,6 +256,11 @@ dwarf_attr_string (unsigned int attrnum)
       [DW_AT_elemental] = "elemental",
       [DW_AT_pure] = "pure",
       [DW_AT_recursive] = "recursive",
+      [DW_AT_signature] = "signature",
+      [DW_AT_main_subprogram] = "main_subprogram",
+      [DW_AT_data_bit_offset] = "data_bit_offset",
+      [DW_AT_const_expr] = "const_expr",
+      [DW_AT_enum_class] = "enum_class",
       [DW_AT_linkage_name] = "linkage_name",
     };
   const unsigned int nknown_attrs = (sizeof (known_attrs)