diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-19 17:07:30 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-19 17:07:30 -0700 |
commit | de9a66e3bbc3f287229cad892108e46ac44b2bdf (patch) | |
tree | 5f90d2e464e5db55c08c0eccdd83bc2a923008a3 /dwflpp.cxx | |
parent | f1c8f8a5c96229eee5d06e2eaccecfa7d714fbc9 (diff) | |
download | systemtap-steved-de9a66e3bbc3f287229cad892108e46ac44b2bdf.tar.gz systemtap-steved-de9a66e3bbc3f287229cad892108e46ac44b2bdf.tar.xz systemtap-steved-de9a66e3bbc3f287229cad892108e46ac44b2bdf.zip |
Use dwarf_diename instead of a DW_AT_name lookup
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.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |