| |||
| Home > Changing the Execution Context > Setting the PC to a function > Setting the PC to a function using the Symbols pane | |||
To set the PC to a function using the Symbols pane:
Connect to your target.
Load an image, for example dhrystone.axf.
Select Symbols from the View menu to display the Symbols pane. An example is shown in Figure 10.2.
Click the Functions tab to view the functions for the image. An example is shown in Figure 10.3.
Locate the function where you want to set the PC.
You can use the Filter field to apply a filter on the complete list of functions. Enter the characters (in uppercase or lowercase) that are common to the required functions.
For example, to list all functions that begin with the letter
P, then enter *\*\P or *\*\p.
Right-click on the function name to display the
context menu. For example, right-click on the fflush function.
Select Set PC to Here from
the context menu. The PC changes to the first location of the function
(at address 0xBF14 in this example). An example
is shown in Figure 10.4.
This has the following effect:
If the Registers pane is displayed, the color of the PC register value changes to blue.
The code views change to show the code at the new PC location.
A red box is drawn around the chosen instruction or line of code, to indicate that this is now the location of the PC.
The Call Stack pane changes to show the new context, but does not have any traceback information.
The Locals, Statics, and This tabs in the Locals pane show the variables that are in scope at the new context.
A SETREG command is issued.
Alphabetical command reference in the RealView Debugger Command Line Reference Guide for details of the SETREG command.