]> sourceware.org Git - systemtap.git/commitdiff
Use dwarf_diename instead of a DW_AT_name lookup
authorJosh Stone <jistone@redhat.com>
Thu, 20 Aug 2009 00:07:30 +0000 (17:07 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 20 Aug 2009 00:07:30 +0000 (17:07 -0700)
We should always use the canonical dwarf_diename.  The code being
replaced here wasn't even using dwarf_attr_integrate, so it may have
been missing the accessibility of some names.

* dwflpp.cxx (dwflpp::iterate_over_labels): Use dwarf_diename.

dwflpp.cxx

index 192973f2c00cc709e567cb404a4a7f9a04455aba..dcf0467873d7f3e9e55808ea48ec48155376d1e8 100644 (file)
@@ -937,10 +937,8 @@ dwflpp::iterate_over_labels (Dwarf_Die *begin_die,
   static string function_name = dwarf_diename (begin_die);
   do
     {
-      Dwarf_Attribute attr_mem;
-      Dwarf_Attribute *attr = dwarf_attr (&die, DW_AT_name, &attr_mem);
       int tag = dwarf_tag(&die);
-      const char *name = dwarf_formstring (attr);
+      const char *name = dwarf_diename (&die);
       if (name == 0)
         continue;
       switch (tag)
This page took 0.030863 seconds and 5 git commands to generate.