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:
parent
a5918bf7e6
commit
302cf02757
5
strace.c
5
strace.c
@ -2168,6 +2168,11 @@ print_stopped(struct tcb *tcp, const siginfo_t *si, const unsigned int sig)
|
|||||||
} else
|
} else
|
||||||
tprintf("--- stopped by %s ---\n", signame(sig));
|
tprintf("--- stopped by %s ---\n", signame(sig));
|
||||||
line_ended();
|
line_ended();
|
||||||
|
|
||||||
|
#ifdef ENABLE_STACKTRACE
|
||||||
|
if (stack_trace_enabled)
|
||||||
|
unwind_tcb_print(tcp);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user