5.4.5. Memory processor view

The Memory processor view enables you to examine and change the contents of specific memory addresses.

Memory is made available to you in pages. The default size of a page is 1024 bytes, but you can change this value by selecting Properties... from the Memory pop-up menu.

The area of memory visible depends on the size that you make the processor view window. If less than one page of memory is visible, scroll bars enable you to view other parts of the current page. A typical view of an area of memory is shown in Figure 5.38.

Figure 5.38. Memory processor view

Memory processor view

You can specify the Start address in a variety of formats, as described in Entering addresses.

Generally, each line represents 16 bytes of memory. The address of the first byte is shown at the left. Using Properties... from the Memory pop-up menu, you can set this to be either the absolute address or the zero-based offset from the beginning of the current page. The contents of the 16 bytes of memory occupy most of each line. You can display these as four 32-bit words, eight 16-bit half-words, or sixteen 8-bit bytes. In the last case, the ASCII characters corresponding to the 16 bytes are shown at the right of the line.

The four tabbed pages enable you to define up to four memory areas of interest and to switch easily from one to another. The memory area covered by each tabbed page is one page long, and starts at the address you specify in the Start Address field near the top of the view. The areas you define can overlap, or be contiguous, or be separate.

The size of the displayed words and their display format are among the settings you can change using the Memory processor view pop-up menu. You can use different settings on each of the four tabbed pages of the view. The column widths change automatically to suit the format you select. If you specify a printf format without specifying a width parameter, then the display uses a column width of 10 characters plus any decoration characters you specify.

A breakpoint is highlighted in red, or in gray-red if it is disabled. A watchpoint is highlighted in green, or gray-green if it is disabled.

The Memory processor view also enables you to examine memory on a processor running in Jazelle state, shown in Figure 5.39. You can set the display format for the first tabbed page to ByteCode using the Memory pop-up menu.

You can open multiple memory views, even on a single processor, if you want more than four tabbed pages. For more information about data display formats and data entry formats, see Data formatting.

Figure 5.39. Memory processor view in Jazelle state

Memory processor view in Jazelle state

Memory processor view pop-up menu

To display the Memory pop-up menu, shown in Figure 5.40, right-click within the Memory processor view.

Figure 5.40. Memory processor view pop-up menu

Memory processor view pop-up menu

The Locate Using Value menu item functions as described in Watch processor view pop-up menu.

Format

Select Format from the Memory processor view pop-up menu to display the submenu, shown in Figure 5.41, to set the display format. You can use different settings on each of the four tabbed pages of the view.

Figure 5.41. Memory processor view formats

Memory processor view formats
Toggle Breakpoint

Select Toggle Breakpoint to toggle a breakpoint at the address defined by the current cursor position. If a breakpoint already exists at this address it is deleted. If no breakpoint exists at this address a default breakpoint is created here.

Toggle Watchpoint

Select Toggle Watchpoint to toggle a watchpoint at the address defined by the current cursor position. If a watchpoint already exists at this address it is deleted. If no watchpoint exists at this address a default watchpoint is created here.

A new watchpoint set in this way from the Memory processor view can watch for changes in the value stored in one or more bytes of memory. If the tabbed page of the Memory processor view is configured to display 8-bit, 16-bit, or 32-bit values, then 1, 2, or 4 bytes respectively are watched. If a block of memory locations is selected when you create a new watchpoint with Toggle Watchpoint, then all the highlighted locations are watched.

Refresh

Select Refresh to update and recalculate the displayed data values. This item is useful if the target supports RealMonitor. See also Refresh All.

See AXD online help for details of the other Memory pop-up menu items, including the Memory Properties dialog, shown in Figure 5.42.

Figure 5.42. Memory Properties dialog

Memory Properties dialog

Data width for memory reads and writes

The Target Access group of radio buttons in the Memory Properties dialog enables you to specify the width of data read from or written to memory. Unless you have a particular requirement, use the Def setting to indicate that you want the debugger to decide.

Copyright © 1999-2006 ARM Limited. All rights reserved.ARM DUI 0066G
Non-Confidential