10.6.2. Setting the PC to a function entry point

To set the PC to a function entry point, use the CLI command SETREG, and qualify the function name with the symbol @entry:

setreg @pc=function\@entry

This has the following effect:

For example, to set the PC to the entry point of the Proc_8() function in the dhrystone.axf example image, enter the command:

setreg @pc=Proc_8\@entry

This sets the PC to the address 0x8FAC (line 97 in dhry_2.c).

Compare this with the following command:

setreg @pc=Proc_8

This sets the PC to the address 0x8FA4, which is the first address of the function (line 93 in dhry_2.c).

See also

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