Program Context Expand - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 9: Debugger Commands

Program Context Expand

Program Context Expand
The Program Context Expand command displays values of the parameters
passed to a function, and the local variables in a function. The values are
displayed in the Journal window.
To display a function's calling parameters and local variables, specify the
function's stack level preceded by an at sign (@). The Backtrace window in
high-level mode displays the function calling chain from the main program to
the current function. The debugger displays the function stack (nesting) level
beside each function name. The current function is level 0, the caller is always
1, etc.
You can use the Program Context Expand command to display the local
variables and parameters of any function shown in the backtrace window. The
calling parameters and local variables are accessible on the C run-time stack
for functions in a directly-called chain from the main program to the current
function.
See Also
Expression Display_Value
Expression Monitor
Symbol Display
Example
To display local variables and calling parameters of the function at stack level
2:
Program Context Expand @2
370

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents