HP WDB GUI 5.7 Reference Manual (September 2007)

Debugging with WDB GUI
Advancing Through Your Program
Chapter 3 39
If steplast is not meaningful at the current line, gdb will display the following warning
message: “Steplast is not meaningful for the current line; behaviour undefined.
In C++, the steplast command is helpful while debugging heavy templated functions, because
it directly steps into the call, thus skipping the constructor calls, if any. This behaviour is
unlike the step command that steps into the constructor itself.
To step last a function
1. On the Debug menu, click Step Last.
2. Or, click the Step Last button in the toolbar:
NOTE Step last feature is supported for both C and C++ languages in WDB-GUI with
HP WDB version 3.2 or higher. Step last is not supported on IPF platforms.
Running to the cursor
The Run To Cursor command continues executing the program until it reaches the current
cursor location. The program begins execution at the program counter (indicated by a yellow
arrow) and pauses at the current cursor location.
You can use the Run To Cursor command to advance to a specific location without having to
set a temporary breakpoint.
To run to the current cursor location
1. In the Source or Disassembly view, place the cursor at the location where you want
program execution to pause.
2. On the Debug menu, click Run to Cursor.
Or, in the Source or Disassembly view, click the right mouse button, then click Run to
Cursor.
Or, click the Run to Cursor button in the toolbar: