]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Make dwarf_hasattr_integrate handle DW_AT_specification.
authorJosh Stone <jistone@redhat.com>
Sat, 22 Aug 2009 01:04:44 +0000 (18:04 -0700)
committerRoland McGrath <roland@redhat.com>
Mon, 24 Aug 2009 00:55:41 +0000 (17:55 -0700)
libdw/ChangeLog
libdw/dwarf_hasattr_integrate.c

index c2f66cbca5aab92a34eae39674a9c9f75443f909..82a7a4ae3a5204199ac16500c4f3dc795ee106f8 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-21  Josh Stone  <jistone@redhat.com>
+
+       * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
+
 2009-08-10  Roland McGrath  <roland@redhat.com>
 
        * dwarf_getscopevar.c: Use dwarf_diename.
index 12b4863155e322835ca989e470b04839382efed2..806742d654a6c1a5523e627e700f836152ff600a 100644 (file)
@@ -67,6 +67,8 @@ dwarf_hasattr_integrate (Dwarf_Die *die, unsigned int search_name)
       Dwarf_Attribute attr_mem;
       Dwarf_Attribute *attr = INTUSE(dwarf_attr) (die, DW_AT_abstract_origin,
                                                  &attr_mem);
+      if (attr == NULL)
+       attr = INTUSE(dwarf_attr) (die, DW_AT_specification, &attr_mem);
       if (attr == NULL)
        break;