| |||
| Home > Examining the Target Execution Environment > Viewing registers > Examining registers in the Registers pane | |||
To examine the contents of registers:
Connect to your target (see Connecting to a target).
Load an image (see Loading an executable image).
For example, load the Dhrystone example image dhrystone.axf.
Select View ? Registers to display the Registers pane as a floating pane. The Core tab displayed by default, shown in Figure 12.16.
The Registers pane displays tabs appropriate to the target processor running your image, the Target Access, and the connection configuration. Different target processors contain different registers and so the contents of this pane change depending on the target you are debugging.
For more details on the contents of the Registers pane, see:
Viewing different registers for examples of other tabs.
Understanding the register view for information on registers.
Viewing debugger internals for information on debugger internals and statistics.
The following procedure demonstrates how the register view changes during execution:
Follow the procedure described in Examining registers in the Registers pane.
Click the Src tab to display the source file containing the current scope.
Select Edit ? Advanced ? Show Line Numbers to display line numbers.
This is not required but might help you to follow the examples.
Click on the Src tab to view
the source file dhry_1.c.
Set a simple breakpoint by double-clicking in the gray margin on line 301.
Click Run to start execution.
Enter 5000 when asked for the
number of runs.
The program starts and then stops when execution reaches the breakpoint at line 301. The red box marks the location of the PC when execution stops.
The contents of the Registers pane are updated to show the program status as the target stops, shown in Figure 12.17.
Click High-level Step Into to execute one line of source and then stop.
Register values that have changed since the last update are displayed in dark blue, shown in Figure 12.18.
Click High-level Step Into again and examine the register values as they change.
Register values that changed at the previous update are displayed in pale blue, shown in Figure 12.19.
Click High-level Step Into a few more times and examine the register values as they change.
Double-click on the red marker disc to clear the breakpoint at line 301.