Array Window

The Array window allows manipulation of a contiguous block of memory, displayed as an array of elements. The window lists array contents sequentially, starting at element 0.

The Array window title shows the base address bound to the array. The base address can bind to an address, a variable, or a register. An array bound to a local variable closes after the routine that defines the variable returns to the calling routine.

For array elements cast as structured types, a hierarchical control appears to the left of each element. Use these hierarchical controls to expand or collapse the display of each element’s contents.

Figure 1 shows an Array window. Table 1 explains the items in the window.

Figure 1 Array window

 

Table 1 Array window—items
Item Icon Explanation
Hierarchical control   Click to collapse the view of the information pane.
Bind To   Select the base address of the array: Address, Variable, or Register.
Array size   Enter the number of elements to display in the Array window.
Struct Member   Select a specific member to show in each element, or show all members.
Element   Shows the array elements in a hierarchical list.
Value   Shows the value of each array element.
Location   Shows the address in memory of each array element.
Opening an Array Window

Use the View Array command to manipulate a memory block in an Array window.

  1. Select the array that you want to view.
  2. Select Data > View Array.
  3. A new Array window appears.

TIP Drag and drop a register or variable name into an Array window to set the base address. Use the View Memory As command to interpret memory displayed in an Array window as a different type.

Alternatively, use a contextual menu to open an Array window, as explained in Table 2.

Table 2 Opening an Array window by using a context menu
On this host… Do this…
Windows Right-click the array and select View Array.
Solaris Click and hold on the array, then select View Array.
Linux Click and hold on the array, then select View Array.