From 5a1dd37dd41d4f822a36132010812cb46aa44a1b Mon Sep 17 00:00:00 2001 From: Nikolai Nosov Date: Thu, 16 Apr 2020 13:27:33 +0400 Subject: [PATCH] check that basic handling (actually, unwind_simple) wer performed and if not, do it from unwind_pretty --- src/dwarf/dwarf_handler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dwarf/dwarf_handler.c b/src/dwarf/dwarf_handler.c index 8c72c87..b7dd942 100644 --- a/src/dwarf/dwarf_handler.c +++ b/src/dwarf/dwarf_handler.c @@ -134,6 +134,12 @@ static pst_function* last_function(pst_handler* h) bool pst_handler_handle_dwarf(pst_handler* h) { + if(!h->functions.count) { + if(!pst_handler_unwind(h)) { + return false; + } + } + h->ctx.clean_print(&h->ctx); Dl_info info;