11.18 Registers view

Use the Registers view to work with the contents of processor and peripheral registers available on your target.

Figure 11-27 Registers view (with all columns displayed)
Registers view (with all columns displayed)


You can:

Browse registers available on your target
The Registers view displays all available processor registers on your target. Click and expand individual register groups to view specific registers.
Click Collapse Registers button to collapse the registers tree.
If you want to refresh the Registers view, from the view menu click Refresh view button.
Search for a specific register
You can use the search feature in the Registers view to search for a specific register or group.
If you know the name of the specific register or group you want to view, click Search registers button to display the search bar. Then, enter the name of the register or group you are looking for in the search bar. This lists the registers and groups that match the text you entered.
For example, enter the text CP to view registers and groups with the text CP in their name.
Press Enter on your keyboard, or double-click the register or group in the search results to select it in the Register view.
Figure 11-28 Search for registers
Registers - CP


Tip:

You can also use CTRL+F on your keyboard to enable the search bar. You can use the ESC key on your keyboard to close the search bar.
Toggle between numerical and hexadecimal values
Click the Numerical to hexadecimal button button to change all numeric values to hexadecimal values. This works as a toggle and your preference is saved across sessions.
Create and manage register sets
You can use register sets to collect individual registers into specific custom groups.

To create a register set:

  1. In the Registers view, under Register Set, click All Registers and select Create Create button.
  2. In the Create or Modify Register Set dialog box:
    • Give the register set a name in Set Name, for example Core registers. You can create multiple register groups if needed.
    • Select the registers you need in All registers, and click Add. Your selected registers appear under Chosen registers.
    • Click OK, to confirm your selection and close the dialog box.
  3. The Registers view displays the specific register group you selected.
  4. To switch between various register groups, click All Registers and select the group you want.

To manage a register set:

  1. In the Registers view, under Register Set, click All Registers and select Manage Manage button.
  2. In the Manage Register Sets dialog box:
    • If you want to create a new register set, click New and create a new register set.
    • If you want to edit an existing register set, select a register set, and click Edit.
    • If you want to delete an existing register set, select a register set and click Remove.
  3. Click OK to confirm your changes.
Modify the value of write access registers
You can modify the values of registers with write access by clicking in the Value column for the register and entering a new value. Enable the Access column to view access rights for each register.
Figure 11-29 Registers access rights
Registers access rights


Drag and drop an address held in a register from the Registers view to other views
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.
Change the display format of register values
You can set the format of individual bits for Program Status Registers (PSRs).
Freeze the selected view to prevent the values being updated by a running target
Select Freeze Data from the view menu to prevent values updating automatically when the view refreshes.

Toolbar and context menu options

The following options are available from the view 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.

Copy

Copies the selected registers. If a register contains bitfields, you must expand the bitfield to copy the individual bitfield values.

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.

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.

Adding a new column header

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 yellow background indicates that the value has changed. This might result from you either performing a debug action such as stepping or by you editing the value directly.

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.

Non-ConfidentialPDF file icon PDF versionARM 100953_0527_00_en
Copyright © 2010–2017 ARM Limited or its affiliates. All rights reserved.