7.2.2. Formatting options

You can change the way memory contents are displayed, and set the start address, using the Pane menu:

Copy

If you have selected memory contents, use this option to copy the values to the clipboard ready to paste.

Update Window Now

If you have unselected the option Automatic Update, you can use this option to update the memory display manually. You can update the display using this option at any time when execution is stopped. This enables you to catch any memory updates made externally.

Recompute Expression Now

Where you have used a C/C++ expression to compute the start address, select this option to recompute the expression and, where necessary, start at the new location. Where you have used a fixed value to specify the start address, select this option to update only the pane contents.

Set New Start Address...

Select this option to enter a C/C++ expression to compute the start address. This displays the selection box shown in Figure 7.4 with the current expression already displayed. Change the address and click Set to specify the start address for the memory view.

Previous Start Address

Uses a previous start address for displaying the contents of memory.

The history list holds up to 16 previous start addresses added when:

  • you enter a new start address or expression

  • the current expression is recomputed to generate a new start address

  • the start address is set from the Address context menu.

Set Number of Columns to show...

When the Memory pane is first opened, the number of columns you can see depends on the size of the pane and is chosen so as to show an even number of bytes. You can use this option to change the number of columns visible in the display. Use the selection box to show up to 32 columns in a single window. This number does not include the column used when the ASCII display option is selected, see Show ASCII on page 7-12.

The default setting is 0 which configures the number of columns to fit the window size.

Automatic Update

Updates the memory display automatically, that is when:

  • you change memory from anywhere in RealView Debugger

  • program execution stops.

This is the default.

Recompute Expression on Update

Where you have used a C/C++ expression to compute the start address, select this option to recompute the expression when the pane contents are updated, see above, and start at the new location where necessary.

Timed Update when Running

The memory display can be updated at a specified time interval during program execution. Select this option to set this timer according to the update period specified below.

This is only available where supported by the underlying debug target.

Timed Update Period

Use this to choose the interval, in seconds, between window updates.

Any value you enter here is only used when the option Timed Update when Running is enabled, that is where supported by the underlying debug target.

Signed Decimal

Displays the memory contents as negative or positive values where the maximum absolute value is half the maximum unsigned decimal value.

Unsigned Decimal

Displays the memory contents from 0 up to the highest value that can be stored in the number of bits available.

Hexadecimal

This displays memory contents as hexadecimal numbers.

Hex, leading Zeroes

Displays memory values in hexadecimal format including leading zeroes.

This is the default display format for data values in this pane.

Show ASCII

Adds another column to the Memory pane, on the right hand side, to show the ASCII value of the memory contents.

ASCII format displays column values as characters. The ASCII format is useful if, for example, you are examining the copying of strings and character arrays by transfer in and out of registers.

Any nonprintable value is represented by a period (.).

Data formats

The Pane menu contains an extended panel to define how data values are displayed in the Memory pane. The display format used for viewing memory contents varies depending on the data types supported by your target processor:

Minimum Access Size

Displays memory contents in the format specified as the minimum memory access size for the target. This is the default.

Bytes (8 bits)

Each column displays 8 bits of data.

Half Words (16 bits)

Each column displays 16 bits of data. Where your debug target is an ARM architecture-based processor halfwords are aligned on 2-byte boundaries.

Long Words (32 bits)

Each column displays 32 bits of data. Where your debug target is an ARM architecture-based processor long words are aligned on 4-byte boundaries.

Long Long Words (64 bits)

Each column displays 64 bits of data.

Fixed (word size)

Enables you to use fixed point format for displaying numeric values, that is based on the natural size for the debug target processor. The default format is unsigned and one less than the number of bits in the value.

Fixed...

Displays a selection box that enables you to specify a fixed point format to display numeric values. The value entered here becomes the default display format for the pane.

Floats (32 bits)

Displays values in floating point IEEE format, occupying four bytes, for example:

2.5579302e-041
Doubles (64 bits)

Displays values in floating point IEEE format, occupying eight bytes, for example:

4.71983561663e+164

Display colors

When using the Memory pane to view memory contents, RealView Debugger uses color to make the display easier to read and to highlight significant events:

  • Black specifies RAM or memory that can be modified.

  • Blue shows those contents that have changed since the last update. Light blue indicates a previous update.

  • Yellow indicates the contents of ROM.

  • Green indicates Flash memory known to RealView Debugger. Otherwise the values are displayed in yellow, indicating ROM.

  • Red**** indicates one of:

    • no memory is defined at this location

    • memory at this location is defined as Auto meaning it is determined when loading your application program

    • memory is defined as prompt meaning that you are prompted to confirm the usage when loading the application.

  • Red!!!! indicates that there has been a failure in performing the memory operation. Double-click, with the right mouse button, at this location to get an explanation of the problem.

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