You copied the Doc URL to your clipboard.

Registers view

Use the Registers view to display the contents of target registers. It also allows you to modify the values of registers that have write access.

This view also enables you to:

  • Change the display format of register values. For the Program Status Registers (PSRs) you can set the format of 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 from this view into either the Memory view to see the memory at that address, or into the Disassembly view to disassemble from that address.

Figure 10-22 Registers view

Registers view

Right-click on the column headers to select the columns that you want displayed:

Name

The name of the register.

Use $register_name to 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 M bitfield of the CPSR, enter the following command in the Commands view:

print $CPSR.M
Value

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.

Type

The type of the register value.

Count

The number of array or pointer elements.

Size

The size of the register in bits.

Location

The name of the register or the bit range for a bitfield of a PSR. For example, bitfield M of the CPSR is displayed as $CPSR[4..0].

Access
The access mode for the register.
Show All Columns
Displays all columns.
Reset Columns
Resets the columns displayed and their widths to the default.

The Name, Value, Size, and Access 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 different 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.

Search

Searches for a register in the current view.

Copy

Copies the selected registers. To copy the bitfields of a PSR, you must first expand the PSR.

It can be useful to copy registers to a text editor in order to 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>

Displays the Memory view starting at the address held in the register.

Show Disassembly Pointed to By <register name>

Displays the Disassembly view starting at the address held in the register.

Translate Address in <register name>

Displays the MMU view and translates the address held in the register.

Send to <selection>

Displays a sub menu that enables you to add register filters to a specific Expressions view.

<Format list>

A list of formats you can use for the register values.

View Menu

The following View Menu options are available:

New Registers View

Creates a new instance of the Registers view.

Refresh

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:

Undo

Reverts the last change you made to the selected value.

Cut

Copies and deletes the selected value.

Copy

Copies the selected value.

Paste

Pastes a value that you have previously cut or copied into the selected register value.

Delete

Deletes the selected value.

Select All
Selects the whole value.