summaryrefslogtreecommitdiffstats
path: root/tests/backtrace-dwarf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/backtrace-dwarf.c')
-rw-r--r--tests/backtrace-dwarf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c
index aa12315a..3a3e7632 100644
--- a/tests/backtrace-dwarf.c
+++ b/tests/backtrace-dwarf.c
@@ -41,6 +41,12 @@ report_pid (Dwfl *dwfl, pid_t pid)
if (dwfl_report_end (dwfl, NULL, NULL) != 0)
error (2, 0, "dwfl_report_end: %s", dwfl_errmsg (-1));
+
+ result = dwfl_linux_proc_attach (dwfl, pid, false);
+ if (result < 0)
+ error (2, 0, "dwfl_linux_proc_attach: %s", dwfl_errmsg (-1));
+ else if (result > 0)
+ error (2, result, "dwfl_linux_proc_attach");
}
static Dwfl *