OverviewThe Locals Window displays all local variables in scope. It may be used to visualize local variables. Local variables need to be collected before they can be viewed. See Adding an Action in the Tracepoint Dialog for more information. Locals Window topics: The Variable Menugives on-screen access to the funtions of the Locals Window. To use any of these functions, first use the left mouse button to select a variable from the display. Then select:
Locals DisplayThe Locals Window Display consists of a scrolled listbox which contains all local variables, one per line. Locals which were not collected at the current tracepoint will display a memory-access error. To use any of the functions of the Locals Window, use the left mouse button to select any element from the Display. Pointers, structures, and subjects appear in the display with small exapansion box before their names. To dereference pointers or view the members of subjects or structures , click the closed expansion box (which appears as a small plus sign, "+") to "expand" the listing. The expansion box changes to a minus sign, "-", indicating that the display is now open. Pointers, structures and subjects may be expanded recursively to allow multiple pointer dereferences and embedded structure viewing.The Locals Display updates as the trace buffer is navigated, highlighting in blue those variables whose values have changed. The Locals Window will, by default, display all pointers in hexadecimal and all
other variables in decimal. To change the default display of variables, use the
"set output-radix" command in the console window. (Type "help set output-radix" in the
console window for help. To make this change permanent, it must be added to the user's
init file -- .gdbinit.) To change the display format for a variable,
select the Format option from either the Variable Menu or the
Locals Pop-up Menu.
Locals Pop-up MenuThe Locals Pop-up Menu provides quick access to the functions of the Locals Window. To use the Locals Pop-up Menu, first select a variable from the Display (by clicking the left mouse button on it) and click the right mouse button, choosing from the pop-up:
|