Using SoftBench Debugger

Handling Signals and Events

on the right side of the dialog box.

SoftBench Debugger retains information (such as Count and Commands) for suspended intercepts. Selecting Activate reactivates the intercept with the same information it had before.

Handling Signals

When your program receives a signal, you have the option of ignoring it or accepting it. If you ignore the signal, you can continue debugging your program as if no signal was received. If you accept the signal, the signal triggers the appropriate signal handler, if you have one defined. If you have no signal handler defined, the signal may cause your program to abort.

When the signal arrives, your program pauses. A message appears in the Debugger Output Area to tell you what signal has been received. If you Step or Continue, SoftBench Debugger delivers the signal to your program.

To ignore the signal, choose either "Execution: Step Operations

Step and Ignore Signal" or "Execution:Continue

Operations Continue and Ignore Signal".

If your program does its own signal handling for a specific signal (using signal(2)), you can set the status of that signal to:

Status: Suspend

Report type: Silent

This causes the signal to be passed through to your program.

216

Chapter 7