7.1.3. Changing register contents

You can use in-place editing to change register contents in the Register pane. There are, however, other ways to set register values from the Code window:

Any register contents you change are displayed in blue.

Note

You can also set breakpoints on memory mapped registers but not on core registers, because breakpoints are set on addresses and core registers do not have addresses.

Dragging and dropping expressions into register contents

You can drag and drop an expression from a source file into the contents of a register function name. The following example shows how to you can set the PC register to the address of a function:

  1. Load the dhrystone.axf image.

  2. Enable line numbering and locate line 149 in the dhry_1.c source.

  3. Double-click on the Proc_5 function name.

  4. Click on the function name, and drag it to the PC register.

    The address of the Proc_5 function is loaded into the PC register, and the source level view changes to show the code for the Proc_5 function. The Dsm tab is also updated.

    Note

    If the function code is in a different source file, and that source file is not open, RealView Debugger cannot determine the context, and informs you of this in the Src tab. However, the Dsm tab is updated.

Updating register contents

The Register pane updates automatically when register contents change. This is set by default, as indicated by the checked option Automatic Update on the Pane menu.

If you change this default option, you must update the pane display manually. Select Update Window from the Register pane context menu to update the view. RealView Debugger updates the pane contents and displays changed values in blue for improved readability.

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DUI 0281C
Non-Confidential