PDA

View Full Version : How do I use the Stack Frame Pane?



Josh-TotalView-Tech
07-20-2006, 11:11 AM
The Stack Frame Pane shows all of the selected function's parameters, local variables, and registers.

http://www.totalviewtech.com/Documentation/latest/html/TotalView_Tips/images/stack_trace_n_stack_frame.gif

The Stack Frame Pane does not show global variables. If you want to see them, use the Tools > Program Variables command.

You can change a variable or register's value if TotalView is displaying it in bold.

You can show information about other functions on the stack by clicking on the function's name in the Stack Trace Pane.

If you want to see more information for a variable, dive (double-click) on it. TotalView responds by displaying a Variable Window containing this information. Diving lets you see all of an array's values, the value pointed to by a pointer, and the elements of a struct.

lhartzman
12-04-2007, 01:04 PM
What do you do when all of the local variables are not shown in the pane? Why wouldn't they be shown?

Les

PeterT-RogueWave
12-05-2007, 03:36 AM
Lee,

Off the top of my head, the most likely explanation is that you might be trying to debug code that was compiled with an optimization flag, as well as -g.. Optimization may eliminate some variables that are either not used, or which can be held in registers. Losing some local variables is a fairly common side effect.