| |||
| Home > Changing the Execution Context > Resetting the PC to the image entry point | |||
After executing an image, you can reset the PC to the image entry point without having to reload the image. This is useful when you do not want to reset the values of variables, reset the Stack Pointer (SP), or clear breakpoints. Scope is also changed to the PC.
If there are any global or static variables that are initialized in the image, then they are not reset to their initial values.
To reset the PC to the image entry point, either:
Select Set PC to Entry Point from the Debug menu.
Click Set
PC on the Debug toolbar.
This has the following effect:
If the Registers view is displayed, the color of the PC register value changes to blue to indicate that the value has changed.
The code view changes to show the code at the new PC location.
A red box is drawn around the entry point instruction or line of code, to indicate the new PC location.
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 RESTART command is issued.
See also:
the following in the RealView Debugger Command Line Reference Guide:
Alphabetical command reference for details of the RESTART command.