TotalView User Guide : Part V: Debugging : Examining and Changing Data : Diving in Variable Windows

Diving in Variable Windows
If the variable being displayed in a Variable Window is a pointer, structure, or array, you can dive on the value. This new dive, which is called a nested dive, tells TotalView to replace the information in the Variable Window with information about the selected variable. If this information contains nonscalar data types, you can also dive on these data types. Although a typical data structure doesn’t have too many levels, repeatedly diving on data lets you follow pointer chains. That is, diving lets you see the elements of a linked list.
The following topics contain information related to this topic:
*
*
TotalView lets you see a member of an array of structures as a single array across all the structures. See Displaying an Array of Structure’s Elements” for more information.
TotalView remembers your dives. This means that you can use the undive/redive buttons to view where you already dove.
 
The following figure shows a Variable Window after diving into a pointer variable named sp with a type of simple*. The first Variable Window, which is called the base window, displays the value of sp. (This is Window 1 in Figure 187.)
Figure 187: Nested Dives
The nested dive window (Window 2 in this figure) shows the structure referenced by the simple* pointer.
You can manipulate Variable Windows and nested dive windows by using the undive/redive buttons, as follows:
*
*
*
*
If you dive on a variable that already has a Variable Window open, the Variable Window pops to the top of the window display.
If you select the Window > Duplicate command, a new Variable Window appears, which is a duplicate of the current Variable Window.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com