| |||
| Home > Altering the Target Execution Environment > Changing the value of a register > Setting registers with the Interactive Register Setting dialog box | |||
To set register contents with the Interactive Register Setting dialog box:
Select Registers from the View menu to display the Registers pane. An example is shown in Figure 14.1.
Select Debug ? Memory/Register Operations ? Set Register... from the Code window main menu to display the Interactive Register Setting dialog box. An example is shown in Figure 14.3.
Enter the register to change in the Register field. If required, use the drop-down arrow to select a previously used register from the stored list.
For example, enter @R4.
Enter the value for the register in the Enter New Value field. If required, use the drop-down arrow to select a previously used value from the stored list.
For example, enter 0x4000.
Click Set to change the value of the specified register. If required, use the drop-down arrow to select a previously used value from the stored list.
The Log at the bottom of the dialog box is updated to show your change, shown in Figure 14.4.
Click Close to close the Interactive Register Setting dialog box.
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.
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, but does not have any traceback information.
The Locals, Statics, and This tabs in the Locals pane change as appropriate to show the variables that are in scope at the new context.