Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
howto:gdb [2021/04/02 18:19] – [Debugging] using pgrep digital man | howto:gdb [2021/04/02 18:33] – Instructions for collecting a quick backtrace snapshot from all running threads digital man | ||
---|---|---|---|
Line 100: | Line 100: | ||
Alternatively, | Alternatively, | ||
handle SIGPIPE nostop noprint pass | handle SIGPIPE nostop noprint pass | ||
+ | | ||
+ | ===== Thread Snapshot ===== | ||
+ | |||
+ | To attach to a running sbbs process and quickly collect a snapshot of backtraces from all running threads (remember, obtain root privileges first, e.g. with '' | ||
+ | $ gdb -p $(pgrep sbbs) -batch -ex " | ||
===== See Also ===== | ===== See Also ===== |