HP 68000 Series User Manual page 465

Debugger/simulator
Table of Contents

Advertisement

Chapter 10: Expressions and Symbols in Debugger Commands
To refer to variables on the stack in the current function, specify the name
of the variable. For example: x.
To refer to a local variable in a nested function, specify the function name
followed by a backslash and then the name of the local variable, for
example, main\i.
Explicit Stack References
A function is allocated storage on the stack when it is executing, or when it has
called another function. To refer to functions and variables on the stack
explicitly, you must specify the function's nesting level preceded by a
commercial at sign (@). The backtrace window in high-level mode displays
nesting level information (for example, if the current function is @0, its calling
function is @1, etc.). You may reference functions on the stack as follows:
To refer to the address that the function will continue to execute from,
specify the function nesting level preceded by an at sign (@). For
example, the command Program Run Until @1 executes the program until
the current function returns to its caller.
To refer explicitly to a local variable in a nested function, specify the
function nesting level followed by a backslash and then the name of the
variable. For example, the command Expression Display_Value @3\str
references the local variable 'str' of the function at nesting level 3.
To reference a function itself, enter the command Program Context
Expand followed by a space and then the function nesting level. For
example, the command Program Context Expand @7 displays all
information about the function at the specified level for that particular
invocation. This information includes the name of the function, the
current line number, and all local variables in the function and their
values. See the Program Context Expand command syntax description in
the "Debugger Commands" chapter for more information.
Symbolic Referencing
443

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents