| |||
| Home > Examining the Target Execution Environment > Viewing the Call Stack > Examining the Call Stack | |||
To examine the Call Stack:
Select Call Stack from the View menu to display the Call Stack view. Figure 13.46 shows an example.
If an entry is part of a multistatement line, the Call Stack view shows the information in the form of line and column details. Figure 13.47 shows an example.
The following procedure shows how you might use the Call Stack view:
Connect to your target.
Load the required image. For example, dhrystone.axf.
Click
the Locate PC button on the Debug toolbar
to view the source file dhry_1.c.
Double-click in the gray margin at line 301 of file dhry_1.c.
This sets a simple breakpoint.
Click Run to start execution.
Enter 5000 when prompted for
the number of runs. Execution stops when the breakpoint at line
301 is reached. The red box marks the location of the PC when execution
stops.
Select Call Stack from the View menu to display the Call Stack view. Figure 13.48 shows an example.
Continue to step through your program.
Monitor changes in the Call Stack view as you step through your program.
Double-click on the red marker disc at line 301
of file dhry_1.c. This clears the breakpoint.