12.8.1. Examining registers in the Registers pane

To examine the contents of registers:

  1. Connect to your target (see Connecting to a target).

  2. Load an image (see Loading an executable image).

    For example, load the Dhrystone example image dhrystone.axf.

  3. Select View ? Registers to display the Registers pane as a floating pane. The Core tab displayed by default, shown in Figure 12.16.

    Figure 12.16. Registers pane

    Registers pane

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:

Demonstrating how the register view changes during execution

The following procedure demonstrates how the register view changes during execution:

  1. Follow the procedure described in Examining registers in the Registers pane.

  2. Click the Src tab to display the source file containing the current scope.

  3. Select Edit ? Advanced ? Show Line Numbers to display line numbers.

    This is not required but might help you to follow the examples.

  4. Click on the Src tab to view the source file dhry_1.c.

  5. Set a simple breakpoint by double-clicking in the gray margin on line 301.

  6. Click Run to start execution.

  7. 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.

  8. The contents of the Registers pane are updated to show the program status as the target stops, shown in Figure 12.17.

    Figure 12.17. Registers pane

    Registers pane
  9. 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.

    Figure 12.18. Registers changed since the last update

    Registers changed since the last update
  10. 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.

    Figure 12.19. Registers changed at the previous update

    Registers changed at the previous update
  11. Click High-level Step Into a few more times and examine the register values as they change.

  12. Double-click on the red marker disc to clear the breakpoint at line 301.

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0153H
Non-Confidential