Memory Window

Display the memory address of the selected symbol and the corresponding location of the selected symbol in the source code.

Menu

View > Memory...

Toolbar

Memory

In bytewise display, the contents of the memory is not only displayed numerically but also interpreted as characters written on the right side of the Memory window. Non-printable characters are replaced by a dot.

Note

Values changed by the last executed instruction are displayed in the enhanced foreground color, which you specify by selecting Options > GUI Preferences. See GUI Preferences Dialog Box.

Tip

You can edit memory contents directly in the Memory window by double-clicking the item. The changes apply to the current debugger session only. The debugger does not save the changes if you exit.

Pop-up Menu

Modify

The Modify item opens the Modify Memory dialog box. Use this dialog box to change the memory contents.

Start Address

Enter the address where the modification should start into the Start Address field. The Memory window cursor location is the default value for the address.

Access Size

Select the size of the information to be written from the Access Size drop-down list.

Browse

Click the Browse button to invoke the Symbol Selector and obtain the addresses of program symbols.

Expression List

Enter a list of expressions, separated by commas, into the Expression List field. The amount of memory being accessed is the size times the number of expressions. For example, by entering 1000 into the Start Address field and the list 1, 0, 1, 1 into the Expression List field and selecting the size BYTE, the debugger modifies bytes 1000 through 1003. The same operation with size WORD affects bytes 1000 through 1007. Possible values are BYTE, WORD, LONG, LONG LONG, FLOAT, DOUBLE, LONG DOUBLE.

Start Address

The Start Address item opens the Start Address dialog box. Use this dialog box to change the start address of the Memory window.

Address

Enter the new start address into the Address field.

Browse

The Browse button invokes the Symbol Selector, which helps to obtain the addresses of program symbols.

Reload

This menu item updates the window contents. This is especially useful if the Memory window is not updated automatically. See also pop-up menu entry Auto Update.

Home

If you select Home, the window returns to the Start Address.

Follow

If you select Follow, the Memory window follows the pointer marked by the Memory window cursor. This means, the contents of the marked section of memory are interpreted as a memory address, which becomes the new start address. This menu item is disabled if the format is not a pointer type.

Back

If the start address is changed by Start Address or Follow, the old start address is saved. When you select Back, the start address is reset to its previous value. Note that you can undo not only the last change but all changes performed by Start Address or Follow. For example, a return to the initial start address after an arbitrary number of address changes is possible. If no previous address exists, this menu item is disabled.

Assembler

Select Assembler to open the Assembler window. The Assembler window is set to the address marked by the Memory window cursor. See also Assembler Window.

Size

Select Size to specify how the array of bits extracted from memory is grouped. The current Size is marked. Possible values are Byte, Word (16 bit), Long (32 bit), Long Long, Float, Double and Long Double.

Format

Select Format to select the display format of the Memory window. The current Format is checked. Possible values are Hexadecimal, Unsigned Decimal, Signed Decimal, Octal and Binary.

Based Mode

If the start address of the Memory window is not a constant expression, select Based Mode. In the based mode, the Memory window is updated whenever the value of the expression changes. The based mode is indicated as [based] in the title bar of the Memory window. By default, the based mode is turned off.

Note that the automatic start address change of a based Memory window cannot be undone by applying the item Back. The memory denoted by the start address expression cannot be scrolled.

Auto Update

If Auto Update is marked, the window is updated automatically whenever the memory on display is changed. Otherwise, it is updated only when the menu item Reload is selected. When auto update is turned off and something happened since the last update, which may have changed the memory on display, the string [?] is displayed in the title bar of the Memory window.

Dump window contents to file...

Writes the currently displayed window contents as-is to a text file. Click Save As to specify the targeted file.

See Also

For more complete information about compiler optimizations, see our Optimization Notice.