summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index b040c622..db14a787 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -3069,7 +3069,10 @@ dwflpp::iterate_over_labels (Dwarf_Die *begin_die,
case DW_TAG_label:
break;
case DW_TAG_subprogram:
- function_name = name;
+ if (!dwarf_hasattr(&die, DW_AT_declaration))
+ function_name = name;
+ else
+ continue;
default:
if (dwarf_haschildren (&die))
iterate_over_labels (&die, q, callback);