7.2.1. Displaying memory contents

To examine the contents of memory:

  1. Select File → Reload Image to Target to reload the image dhrystone.axf.

    You can also reload an image using the Reload Image button on the Actions toolbar.

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

  3. Set a simple breakpoint by double-clicking on line 150.

  4. Click Go to start execution.

  5. Enter 5000 when asked for the number of runs.

    The program starts and then stops when execution reaches the breakpoint at line 150. The red box marks the location of the PC when execution stops.

  6. Select View → Pane Views → Memory to display the Memory pane.

    Start addresses can be set using in-place editing or using the context menu.

  7. Right-click in the first address in the window to display the Address context menu.

  8. Select Set New Start Address... to display the selection box shown in Figure 7.4.

    Figure 7.4. Memory start address selection box

    Memory start address selection box

    You specify the start address by giving an address in hexadecimal or by giving a C/C++ expression that RealView Debugger computes to obtain the starting address. You can use any valid expression using constants and symbols.

    You can also use the drop-down arrow to select an expression from a browser or to re-use a value entered previously. The drop-down also gives access to your list of personal favorites where you can store a memory address for re-use in this, or future, debugging sessions.

    In this example, memory addresses of interest are in the region of 000088A0 so set the start address to examine memory from this location.

    Numbers entered here must start with a zero. This means that RealView Debugger can distinguish these entries from valid variable names.

  9. Enter the required location, for example 0x00088A4, and then click Set to update the Memory pane.

    The memory display is arranged in columns. The left-most column shows the memory address. The memory contents are shown in the other columns. The number of columns displayed varies depending on the size of the pane. Color coding is used to distinguish the type of memory being displayed, see Display colors for details.

  10. Monitor changes in the memory display as you step through your program.

  11. Double-click on the red marker disc to clear the breakpoint at line 150.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B