| |||
| Home > DS-5 Debug perspective and views > Registers view | |||
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. You can view and edit some registers, such as Program Status Registers (PSRs), as 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.
Right-click on the column headers to select the columns that you want displayed:
The name of the register.
Use $ to
reference a register. To refer to a register that has bitfields,
such as a PSR, specify register_name$.
For example, to print the value of the register_name.bitfield_nameM bitfield
of $CPSR, enter the following command in the
Commands view:
print $CPSR.M
$1 = USR
The value of the register. A yellow background indicates the value has changed.
If you freeze the view, then you cannot change a register value.
The type of the register.
Not applicable to the Registers view.
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 CSPR is displayed as $CPSR[0..4].
The Name, Value, and Size columns
are displayed by default.
The following options are available from the toolbar or context menu:
Refresh the view.
Toggle the freezing of the data in the view. This also disables or enables the Refresh Register View option.
Create a new instance of the Registers view.
Copy 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 registers currently expanded in the view.
Where enabled, displays the Memory view starting at the address held in the register.
A list of formats you can use for the register values. The default is Hexadecimal.
The following options are available on the context menu when you select a register value for editing:
Copy and delete the selected value.
Copy the selected value.
Paste a value that you have previously cut or copied into the selected register value.
Delete the selected value.
Undo the last change you made to the selected value.
Set the reading order for the selected register value to be left or right justified.
Show any unicode control characters in the selected register value.
Select the unicode control character to insert into the selected register value.
ARM DS-5 Using Eclipse: