handle (gdb mode only)

Set signal handling actions.

Syntax

handle signal_name [ handle_keyword ]  

Parameters

signal_name

The name of the signal to handle.

handle_keyword

The action to take on the signal. Must be one of the following:

stop. The debugger should stop your program when this signal occurs. This implies the print keyword as well.

nostop. The debugger should not stop your program when this signal occurs. It may still print a message telling you that the signal has occurred.

print. The debugger should print a message when this signal occurs.

noprint. The debugger should not mention the occurrence of the signal at all. This implies the nostop keyword as well.

pass. The debugger should allow your program to handle this signal. Your program can handle the signal, or else it may terminate if the signal is fatal and not handled. pass and noignore have the same effect.

nopass. The debugger should not allow your program to see this signal. nopass and ignore are synonyms.

ignore. The debugger should not allow your program to see this signal. nopass and ignore are synonyms.

noignore. The debugger should allow your program to see this signal; your program can handle the signal, or else it may terminate if the signal is fatal and not handled. pass and noignore have the same effect.

Description

This command defines how the debugger handles signals.

The debugger can detect any occurrence of a signal in your program. You can define in advance how the debugger should handle each kind of signal. Normally, the debugger is set up to let some signals like SIGUSR1 be silently passed to the debuggee, but to stop your program immediately whenever an error signal happens. This command changes these settings.

Example

(idb) info handle ILL
Unrecognized or ambiguous flag word: "ILL".
(idb) handle SIGILL nostop noprint
Signal        Stop      Print   Pass to program Description
SIGILL        No        No      No              Illegal instruction
(idb) info handle SIGSEGV
Signal        Stop      Print   Pass to program Description
SIGSEGV       Yes       Yes     Yes             Segmentation fault
(idb) info handle SIGALRM pass
Signal        Stop      Print   Pass to program Description
SIGALRM       No        No      Yes             Alarm clock

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.