C and C++ SoftBench User's Guide
Using SoftBench Debugger
Specifying Identifier Locations
Chapter 7 179
procedure (that is, the procedure that
called the currently executing
procedure), a depth of 3 is two below,
and so on. You can use this for
debugging recursive procedures
where the stack contains multiple
instances.
When you enable stack frame
numbering in the "Options: Stack
Settings…" dialog box, and select "■
Stack Top is 1", SoftBench
Debugger uses the leftmost numbers
in the list of stack frames to show the
stack depth relative to the currently
executing procedure. This number
can be used for
depth
in `run( ).
`main(
depth
)\
var
To search for
var
at a fixed stack
depth
depth
, counting from the
bottom of the stack. `main(1) (or
`main) corresponds to the first
procedure on the stack, `main(2) is
the first routine called from the first
procedure, and so on.
When you enable stack frame
numbering in the "Options: Stack
Settings…" dialog box, and do
not
select "■ Stack Top is 1",
SoftBench Debugger uses the
leftmost numbers in the list of stack
frames to show the stack depth
relative to the bottom of the stack.
You can use this number as the
depth
in `main( ).
`env(
offset
)\
var
To search for
var
at a relative offset
from the current environment.
offset
must include a + or - to
indicate the direction of the offset.