aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index ca721abf..50b41ba3 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2706,6 +2706,11 @@ trace_syscall_exiting(struct tcb *tcp)
dumpio(tcp);
line_ended();
+#ifdef USE_LIBUNWIND
+ if (stack_trace_enabled)
+ print_stacktrace(tcp);
+#endif
+
ret:
tcp->flags &= ~TCB_INSYSCALL;
return 0;