11.17 Registers view

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

Figure 11-22 Registers view
Registers view

You can:
View registers available on your target
By default, the Registers view displays a common subset of the processor registers. You can add and remove other registers, either individually or in groups. Keep the set of registers in the view to the minimum to maintain good debug performance.
  • Add a specific register or group of registers
    If you know the name of the specific register or group you want to view, enter the register or group name in the Add a register to the view field. 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. Double-click the register or group to add it to the Registers view.
    Registers - CP
  • Browse and select multiple registers
    If you want to view all available registers on your target click Browse to display the Add Register dialog. Then select one or more registers that you are interested in and click OK to add them to the Registers view. You can also select a register group folder if you want to view all the registers in that group. Ctrl+A selects all the available registers.
    Select registers dialog
  • Delete registers
    In the Registers view, select the registers you want to remove from the view, and click Delete button to delete the selected registers. If you want to reset the view to display the default registers again, then from the view menu select Reset to default, Reset view button.


    HandYou can also use the Delete key on your keyboard to delete the registers.
  • Refresh view
    To refresh or update the values in the view, click Refresh button.
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.
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.
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.
Update View When Hidden
Enables the updating of the view when it is hidden behind other views. By default, this view does not update when hidden.
Reset to default registers
Resets the view to show only the default registers.
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:
Reverts the last change you made to the selected value.
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.
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:
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
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.
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 bit range for a bitfield of a PSR. For example, bitfield M of the CPSR is displayed as $CPSR[4..0].
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.
Related concepts
6.8 About debugging multi-threaded applications
6.9 About debugging shared libraries
6.10.2 About debugging a Linux kernel
6.10.3 About debugging Linux kernel modules
6.11 About debugging TrustZone enabled targets
Related reference
3.11 Setting a tracepoint
3.8 Conditional breakpoints
3.9 Assigning conditions to an existing breakpoint
3.10 Pending breakpoints and watchpoints
Chapter 11 DS-5 Debug Perspectives and Views
Non-ConfidentialPDF file icon PDF versionARM DUI0446W
Copyright © 2010-2015 ARM. All rights reserved.