Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:gdb [2023/01/02 19:09] – [Core File] Mention sysctl.local.conf and 'sysctl --system' to reload digital man | howto:gdb [2024/11/04 02:56] (current) – [Debug Synchronet for *nix using GDB] Ad bug character to title digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Debug Synchronet for *nix using GDB ====== | + | ====== |
You can either run Synchronet ('' | You can either run Synchronet ('' | ||
Line 63: | Line 63: | ||
or (if attaching to an existing running instance, reading the PID from ''/ | or (if attaching to an existing running instance, reading the PID from ''/ | ||
# gdb / | # gdb / | ||
- | or (if attaching to an existing running instance, using '' | + | or (if attaching to an existing running instance, using '' |
- | # gdb -p $(pgrep sbbs) | + | # gdb -p $(pidof sbbs) |
B. Run Synchronet non-daemonized (if no core file used): | B. Run Synchronet non-daemonized (if no core file used): | ||
Line 106: | Line 106: | ||
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 '' | 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 " | + | $ gdb -p $(pidof sbbs) -batch -ex " |
===== See Also ===== | ===== See Also ===== |