Print stack traces on signals

I don't know why it hasn't been done earlier.

* strace.c (print_stopped) [ENABLE_STACKTRACE]: Call unwind_tcb_print
if stack trace printing is enabled.
This commit is contained in:
Eugene Syromyatnikov 2018-08-29 18:09:57 +02:00 committed by Dmitry V. Levin
parent a5918bf7e6
commit 302cf02757

View File

@ -2168,6 +2168,11 @@ print_stopped(struct tcb *tcp, const siginfo_t *si, const unsigned int sig)
} else
tprintf("--- stopped by %s ---\n", signame(sig));
line_ended();
#ifdef ENABLE_STACKTRACE
if (stack_trace_enabled)
unwind_tcb_print(tcp);
#endif
}
}