stop signal (idb mode only)

Set a breakpoint on a signal.

Syntax

stop [quiet] signal signal [, ...] [thread ID {,...}][if cond] [commands]

Parameters

signal

One or more comma-separated signals.

ID

A thread ID.

cond

A conditional expression.

commands

A list of debugger commands.

Description

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:

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.

Example

(idb) stop signal hup, int
[#5: stop signal hup, int]

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.