Describes the view content.
This view enables you to:
See the contents of target registers.
Change the values for registers that have write access. When a register value changes, the register value background changes to yellow.
Change the display format of register values. The Program Status Registers (PSRs) also enable you to set the format using individual bits.
Freeze the selected view to prevent the values being updated by a running target.
Drag and drop an address held in a register, such as
R3, from the Registers view either into the Memory view to see the memory at that address, or into the Disassembly view to disassemble from that address.
Figure 10-17 Registers view
Right-click on the column headers to select the columns that you want displayed:
The name of the register.
$register_nameto reference a register. To refer to a register that has bitfields, such as a PSR, specify
$register_name.bitfield_name. For example, to print the value of the
$CPSR, enter the following command in the Commands view:
print $CPSR.M $1 = USR
The value of the register. A shaded background indicates the value has changed.
If you freeze the view, then you cannot change a register value.
The type of the register value.
The number of array or pointer elements.
The size of the register in bits.
The name of the register or the bitmap of the bitfield of a PSR. For example, bitfield M of the CPSR is displayed as
Size columns are displayed by default.
Toolbar and context menu options
The following options are available from the toolbar or context menu:
- Linked: context
Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a specific connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.
Searches the data in the current view for a register.
Copies the selected registers. To copy the bitfields of a PSR, you must first expand the PSR.
This is useful if you want to copy the selected registers to a text editor and compare the values when execution stops at another location.
- Select All
Selects all registers currently expanded in the view.
- Show Memory Pointed to By register_name
Where enabled, displays the Memory view starting at the address held in the register.
- Show Disassembly Pointed to By register_name
Where enabled, displays the Disassembly view starting at the address held in the register.
- Send to Selection
Enables you to add register filters to an Expression view. Displays a sub menu that enables you to add to a specific Expressions view.
- format list
A list of formats you can use for the register values. The default is Hexadecimal.
- View Menu
The following View Menu options are available:
- New Register View
Creates a new instance of the Registers view.
Refreshes the view.
- Freeze Data
Toggles the freezing of data in the current view. This also disables or enables the Refresh option.
- Editing context menu options
The following options are available on the context menu when you select a register value for editing:
Copies and deletes the selected value.
Copies the selected value.
Pastes a value that you have previously cut or copied into the selected register value.
Deletes the selected value.
Reverts the last change you made to the selected value.