Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:gdb [2023/01/02 19:09] – [Core File] Mention sysctl.local.conf and 'sysctl --system' to reload digital manhowto:gdb [2023/02/08 23:47] (current) – Use pidof instead pgrep digital man
Line 63: Line 63:
 or (if attaching to an existing running instance, reading the PID from ''/var/run/sbbs.pid''): or (if attaching to an existing running instance, reading the PID from ''/var/run/sbbs.pid''):
   # gdb /sbbs/exec/sbbs <pid>   # gdb /sbbs/exec/sbbs <pid>
-or (if attaching to an existing running instance, using ''pgrep'' to determine the PID): +or (if attaching to an existing running instance, using ''pidof'' to determine the PID): 
-  # 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 ''sudo'', if necessary): 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 ''sudo'', if necessary):
-  $ gdb -p $(pgrep sbbs) -batch -ex "thread apply all bt" -ex quit > sbbs_threads.txt+  $ gdb -p $(pidof sbbs) -batch -ex "thread apply all bt" -ex quit > sbbs_threads.txt
  
 ===== See Also ===== ===== See Also =====