C and C++ SoftBench User's Guide

Using SoftBench Debugger
Specifying Identifier Locations
Chapter 7 177
Specifying Identifier Locations
When you enter an expression into the "()" input box or in the
"Debugger Input" input box, you must enter the data in a way that can
be understood by DDE. See "Help: DDE Reference" for detailed
information on the syntax required.
Specifying Program Location
Although SoftBench Debugger is designed as a "point and click"
environment, in some cases you might want to specify a location that
cannot conveniently be selected with the mouse. A location is a line in a
file and the corresponding address in your program (if there exists
executable code for that line). You can specify a location when you set a
breakpoint or when you choose "Visit: Procedure ( )".
The syntax for locations is:
line
\
proc
[\
line
]
\\
module
[\
proc
][\
line
]
line
The line number of the statement you want to locate,
counting from the start of the file. If you do not specify
a line number, SoftBench Debugger assumes the first
line in a file or the first executable line in a procedure.
SoftBench Debugger displays the line number in the
Annotation Margin.
module
The
module
containing the statement you want to
locate. For most languages,
module
is the basename of
the source file name. For example, you would use
process to refer to locations in a file named
process.c. If you have several files with the same
basename, such as prog.c and prog.C, you can use the
full quoted filename for
module
(\\"prog.C"\20).
If you do not specify
module
, SoftBench Debugger uses
the file being displayed in the Editable Source Area.
proc
The procedure containing the instruction you want to