[Top]
[First]
[Previous]
[Next (
passing signals to programs
)]
[nexttoC]
Changing Handling Of Signals
To change the way gdb handles a signal, use the 'handle' command:
'handle SIGHUP stop' will make gdb stop the program if it receives SIGHUP.
'handle SIGHUP nostop' will make gdb not stop the program.
'stop' implies 'print', and 'print' implies 'stop' - can't have 'stop' and 'noprint' for a signal.
Use print/noprint and pass/nopass in a similar manner for the other 2 options.
You may specify several options in a single command:
(gdb) handle SIGHUP stop pass Signal Stop Print Pass to program Description SIGHUP No No Yes Hangup
Originally written by
guy keren