7.2.3. Operating on memory contents

You can perform many different operations on the memory displayed in the Memory pane using the context menus. The menu shown, and the options available, depend on the type of memory under the cursor when you right-click and on the valid licenses that you have. The color-coded display helps you to identify the memory type.

Note

If you right-click on a memory cell to access a context menu, the change is made to the cell under the cursor. This is independent of any highlighted cells in the view.

Right-click on a memory address to display the Address context menu that provides options to set the start address:

Update (double right-click)

Updates the display in the Memory pane.

Set New Start Address...

Enables you to specify the starting address for the display of memory contents.

Previous

Enables you to use the previous starting address for the display of memory contents.

Recompute Expression

Where you have used a C expression to compute the start address, select this option to recompute the expression and, where necessary, starts at the new location.

Right-click on a memory cell, or byte, that is black or green, that is where the type is ROM, Flash, or modifiable, to display the menu shown in Figure 7.5.

Figure 7.5. Memory value (RAM) context menu

Memory value (RAM) context menu

This menu contains the options:

Update (double right-click)

Updates the display in the Memory pane.

Set Start Address from Content

Enables you to use the cell contents as the starting address for the display of memory contents. This option is enabled when the cell contains a scalar the size of an address or pointer.

Show Symbol from Content

RealView Debugger looks up the address held in the cell and displays any symbol at that address.

Show Symbol at Address

Displays any symbol at the address contained in the cell, and not the contents.

Set to 0

Enables you to set the current memory cell to zero.

Increment

Enables you to add 1 to the contents of the memory cell.

Decrement

Enables you to subtract 1 from the contents of the memory cell.

Set Value...

Displays a prompt where you can enter a new value for the memory cell. This new value is then entered and the memory display is updated.

A memory cell can also be changed using in-place editing.

Set Memory Interactive...

Enables you to use memory interactive operations available in RealView Debugger.

Fill Memory with Pattern...

Enables you to fill memory starting at this location.

Set Break At...

Displays the Set Address/Data Break/Tracepoint dialog box where you can specify a breakpoint on the current memory cell. The type of breakpoint offered depends on the type of memory at the chosen location. For example, if the memory is defined as ROM, RealView Debugger offers a hardware breakpoint first.

Set Trace Point...

This option is not supported.

Set Trace Range

This option is not supported.

Right-click on a memory cell, or byte, that is yellow, that is where the type is ROM, to see the ROM-specific context menu that offers a subset of these options.

Memory errors

Where a memory cell contains !!!! (colored red), this shows that there has been an error in the memory operation. Right-click to display a menu with a single option:

Show Error Code...

Select this to display the error code returned from the debug target when the memory operation failed.

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