HP WDB GUI 5.7 Reference Manual (September 2007)

Debugging with WDB GUI
Setting Signal Handling
Chapter 340
Setting the next statement to execute
The Set Next Statement command sets the program counter at the current cursor location.
The program begins execution from the newly set statement instead of from the previous
program counter location.
You can use the Set Next Statement command to change the flow of execution if you want to
re-execute or skip a portion of the program.
To set the next statement to execute
1. In the Source or Disassembly view, place the cursor on the statement that you want to
execute next.
2. Click the right mouse button, then click Set Next Statement.
Showing the next statement to execute
The Show Next Statement command updates the WDB GUI to show the next statement to be
executed. The command updates all applicable views, such as the Source, Disassembly, and
Call Stack views.
You can use the Show Next Statement command to return to the current stack frame and
instruction when you have been looking at a different source file or stack frame.
To show the next statement to execute
On the Debug menu, click Show Next Statement.
Or, in the Source or Disassembly view, click the right mouse button, then click Show Next
Statement.
Or, click the Show Next button in the toolbar:
Setting Signal Handling
You can use Signals to view and set signal handling. This includes whether to stop for a
particular type of signal, whether to let your program handle a particular type of signal, and
whether to announce each type of signal.