zignal

Format: zignal [signal] [s] [i] [r] [b] [C] [Q] [c [{cmds}]]

Sets up the signal handling table. If signal is not specified, the "current" signal is used. The optional flags are:

s Toggles stop. If stop is on, then the program stops execution when the signal occurs.

i Toggles ignore. If ignore is on, then the debugger does not send the signal to the process.

r Toggles report. If report is on, then a message displays every time the signal occurs.

b Toggles bell. If bell is on, then a beep sounds every time the signal occurs.

C Clears the signal by setting all four of the above flags to false.

Q Does not print the new state of the signal.

c The signal's command list is set to cmds and is executed every time the signal is encountered. If no commands are supplied, any existing commands are removed. If you wish to continue from a signal that has commands, end the command list with the c command (see c).

The l z command (see l) to list the current handling of signals. For example, assuming a start up state of (don't stop, don't ignore, don't report, no bell), the command z 14 sr sets the alarm clock signal to stop (but still don't ignore) and report it occurred, but don't beep. Doing z 14 sr again toggles these flags back to the other state. Doing z 14 Csb, no matter what the previous state of the signal, will set the alarm clock signal to stop (but still don't ignore) and beep, but don't report.

WARNING: It is highly recommended that you do not tamper with the state of the "breakpoint" signal.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.