Set a breakpoint on a signal.
stop [quiet] signal signal [, ...] [thread ID {,...}][if cond] [commands]
signal |
One or more comma-separated signals. |
ID |
A thread ID. |
cond |
A conditional expression. |
commands |
A list of debugger commands. |
This command sets a breakpoint on a signal. Program execution stops when it receives any of the signals that you specify.
To see a list of signals, use the GDB mode command info handle.
You can notate a signal with or without the prefix SIG. Signal notation is not case-sensitive. For example, all of the following refer to the same signal:
hup
sighup
HUP
SIGHUP
To suppress status reporting messages when the debugger hits a breakpoint, specify quiet.
To set a breakpoint such that the debugger stops when it hits one or more specific threads, specify thread and one or more comma-separated thread IDs.
To set a breakpoint based on a conditional expression, specify if cond.
To run one or more commands upon hitting a breakpoint, specify commands.
(idb) stop signal hup, int [#5: stop signal hup, int]
Copyright © 2001-2011, Intel Corporation. All rights reserved.