Array Window. NXP IDE 5.6
Anúncio
Anúncio
Working with Memory
Array Window
of this line in the Display Settings panel of the IDE Preferences window (Edit > IDE Preferences).
Clearing Watchpoints from the Memory window
To clear a Watchpoint from the Memory window, follow these steps:
1. Select a range of bytes in the Memory window.
2. Choose Debug > Clear Watchpoint.
To clear all Watchpoints from the Memory window:
1. Open the Memory window.
You do not have to select a range of bytes.
2. Choose Debug > Clear All Watchpoints.
NOTE
All Watchpoints clear automatically when the target program terminates or the debugger terminates the program. Watchpoints will reset next time the program runs.
Array Window
An 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 20.2 on page 267 shows an Array window. Table 20.3 on page 267
explains the items in the window.
266
IDE 5.6 User’s Guide
Figure 20.2 Array window
Working with Memory
Array Window
Table 20.3 Array window—items
Item
Hierarchical control
Bind To
Icon
Array size
Struct
Member
Element
IDE 5.6 User’s Guide
Explanation
Click to collapse the view of the information pane.
Select the base address of the array: Address, Variable, or
Register.
Enter the number of elements to display in the Array window.
Select a specific member to show in each element, or show all members.
Shows the array elements in a hierarchical list.
267
Working with Memory
Array Window
Table 20.3 Array window—items (continued)
Item
Value
Icon
Location
Explanation
Shows the value of each array element.
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.
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 20.4 Opening an Array window by using a contextual menu
On this host… Do this…
Windows
Macintosh
Solaris
Linux
Right-click the array and select
View Array
.
Control-click the array and select
View Array
.
Click and hold on the array, then select
View Array
.
Click and hold on the array, then select
View Array
.
268
IDE 5.6 User’s Guide
Download
Anúncio