5.10.14. Displaying memory contents

The Memory pane shows the contents of memory on your debug target. In the default Code window, the Memory pane is the right-hand pane of the middle row (see Figure 4.1).

To display an area of memory:

  1. Select Target ? Reload Image to Target to reload the image.

  2. Right-click on the address column in the Memory pane to display the Memory context menu.

  3. Select Set Start Address... to display the address prompt dialog box.

  4. Enter 0x8000 as the new start address

  5. Click Set to confirm set the start address for the memory pane and close the prompt dialog box. The Memory pane changes to show the memory contents starting at 0x8000.

    You might see some memory contents shown in dark blue. These are memory locations where the value has changed.

  6. Click on the Pane menu of the Memory pane.

  7. Select Format ? Show ASCII to include the ASCII equivalent of the memory contents, shown in Figure 5.9.

    Figure 5.9. Updated memory contents

    Updated memory contents
  8. Click on the Pane menu again.

  9. Select Set Number of Columns to show... to choose how many columns are used in the memory display, for example 8. If you do not specify the number used (or specify zero), RealView Debugger displays as many columns as it can fit into the pane.

  10. Click the Run button on the Debug toolbar to execute the image.

  11. Enter a large number of runs, for example 50000.

  12. Click Stop Execution to stop the program before it finishes and view the updated memory contents.

    Any memory contents that are colored light blue are those that have changed since the previous update, and depends on where execution stops.

  13. In the source file that has the focus, double-click on a variable or function name so that it is highlighted and then drag it to the Memory pane where you can drop it into the display. This is a quick way to display a chosen location in the Memory pane.

    Use the Pane menu, or right-click in an address entry in the Memory pane, to select the display format and modify the address range of the memory area that you want to see.

You can change memory contents displayed in the Memory pane using in-place editing.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0181G
Non-Confidential