next up previous contents
Next: Kernel Up: Debugging Previous: Debugging

Daemon

Debugging a program that is running involves ``attaching'' to the process. Ensure the daemon has been compiled with the -g option and load the symbols with the ``file'' command.

Attach to the process ``attach <pid>'' from within gdb, this will stop the process, where you can add breakpoints/watchpoints and then continue. Asynchronous events will stop the process and then use gdb as normal.



Ian Marsh
1998-10-07