HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Chapter 2 Compiling, Loading, and Executing
the Target Program Looking at the Call/Return Stack |
|
Select Show:Stack to display the Stack View dialog box. The Stack View dialog box, shown in Figure 2-3 “Stack View Dialog Box ”, contains:
Use the tb command to display a traceback of the call/return stack in the debugger output area. The tb command numbers each frame in the stack using the notation `main(n), where n increases in the direction of the most recent frame. The following example illustrates this notation which was displayed after stepping to line 33 of the sample program average:
To move up and down the call/return stack to view the associated source code, enter the environment command. Use the notation `env(-1) to represent the caller of the current routine, as shown in the following example:
After you enter the preceding command, you can easily examine the program data local to the routine shown in the source file display area. To move down the stack, enter the following command:
To return to the current point of execution, regardless of the source currently displayed, enter the following command:
For details on the `env and `run notation, see “Frame Block Qualified Names ”. For a description of the HP/DDE concept of environment, see “Understanding Blocks and Environments”. |