diff options
author | Jordan Rose <jordan_rose@apple.com> | 2019-07-12 16:05:09 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2019-07-12 16:05:09 +0000 |
commit | be28cddeeaa6e4377de9365e506645ee1eb97e35 (patch) | |
tree | f827146dfe75e117c032ac5493ff8c5c778922a8 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | 27ec195f391cf1bcf39fe25f345bc63061566c3c (diff) | |
download | bcm5719-llvm-be28cddeeaa6e4377de9365e506645ee1eb97e35.tar.gz bcm5719-llvm-be28cddeeaa6e4377de9365e506645ee1eb97e35.zip |
Support for dumping current PrettyStackTrace on SIGINFO (Ctrl-T)
Support SIGINFO (and SIGUSR1 for POSIX purposes) to tell what
long-running jobs are doing, as inspired by BSD tools (including on
macOS), by dumping the current PrettyStackTrace.
This adds a new kind of signal handler for non-fatal "info" signals,
similar to the "interrupt" handler that already exists for SIGINT
(Ctrl-C). It then uses that handler to update a "generation count"
managed by the PrettyStackTrace infrastructure, which is then checked
whenever a PrettyStackTraceEntry is pushed or popped on each
thread. If the generation has changed---i.e. if the user has pressed
Ctrl-T---the stack trace is dumped, though unfortunately it can't
include the deepest entry because that one is currently being
constructed/destructed.
https://reviews.llvm.org/D63750
llvm-svn: 365911
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions