| |||
| Home > Altering the Target Execution Environment > Changing the value of a register > Changing the value of a register | |||
To change the value of a register:
Select View ? Registers to display the Registers pane, shown in Figure 13.1, if it is not already visible.
Locate the register that you want to change.
Double-click on the register.
The field containing the value changes to allow in-place editing, shown in Figure 13.2.
Change the value of the register to the required value.
Press Enter to confirm the change. The color of the register value changes to blue.
Alternatively, press Esc to cancel the change. The register value reverts back to the value before you made any changes.
Changing the value of some registers affects other parts of RealView Debugger:
If you change the value of the SP register, then the Stack pane is updated to start from the new address (see Changing the stack pointer).
If you change the value of the PC register, then:
The code views change to show the code at the new PC location.
The Call Stack pane changes to show the new context. Although the Locals, Statics, and This tabs show the variables that are in scope at the new context, the Call Stack tab does not have any traceback information.
Also see Resetting the PC to the image entry point and Setting the PC to a function.