30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 190: The Tools ><br />

Expression List Window<br />

Viewing a List of Variables<br />

Viewing a List of Variables<br />

As you debug your program, you may want to monitor a variable’s value as<br />

your program executes. For many types of information, the Expression List<br />

Window offers a more compact display than the Variable Window for displaying<br />

scalar variables. (See Figure 190.)<br />

The topics discussing the Expression List Window are:<br />

� “Entering Variables and Expressions” on page 303<br />

� “Entering Expressions into the Expression Column” on page 305<br />

� “Using the Expression List with Multi-process/Multi-threaded Programs” on<br />

page 307<br />

� “Reevaluating, Reopening, Rebinding, and Restarting” on page 307<br />

� “Seeing More Information” on page 308<br />

� “Sorting, Reordering, and Editing” on page 309<br />

Entering Variables and Expressions<br />

You can place information in the first column of the Expression List Window<br />

in the following ways:<br />

� Type information into a blank cell in the Expression column. When you do<br />

this, the context for what you are typing is the current PC in the process<br />

and thread indicated in the Threads box. If you type my_var in the window<br />

shown in the previous section, you would type the value of my_var<br />

in process 1, thread 1.<br />

� Right-click on a line in the Process Window Source or Stack Frame Panes.<br />

From the displayed context menu, select Add to Expression List. The following<br />

figure shows the context menu that <strong>TotalView</strong> displays in the Source<br />

Pane: (See Figure 191 on page 304.)<br />

� Right-click on something in a Variable Window. Select Add to Expression<br />

List from the displayed context menu. You can also use the View > Add<br />

to Expression List command.<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 303

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!