10.6.1. Setting the PC to a function using the Symbols view

To set the PC to a function using the Symbols view:

  1. Connect to your target.

  2. Load an image, for example dhrystone.axf.

  3. Select View → Symbols from the Code window main menu to open the Symbols view. Figure 10.2 shows an example:

    Figure 10.2. Symbols view

    Symbols view

  4. Click the Functions tab to view the functions for the image. Figure 10.3 shows an example:

    Figure 10.3. Functions in the dhrystone.axf image

    Functions in the dhrystone.axf image

  5. Locate the function where you want to set the PC.

    Note

    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.

  6. Right-click on the function name to display the context menu. For example, right-click on the fflush function.

  7. 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). Figure 10.4 shows an example:

    Figure 10.4. Set PC to a function

    Set PC to a function

    This has the following effect:

    • If the Registers view is open, 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 the location of the PC.

    • The Call Stack view changes to show the new context, but does not have any traceback information.

    • The Locals, Statics, and This tabs in the Locals view show the variables that are in scope at the new context.

    • A SETREG command is issued.

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111