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 78d5a5b3..5d9d062f 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1330,7 +1330,10 @@ struct dwflpp
const char * sym = label_val.c_str();
Dwarf_Die die;
- dwarf_child (cu, &die);
+ int res = dwarf_child (cu, &die);
+ if (res != 0)
+ return; // die without children, bail out.
+
static string function_name;
do
{