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.

Viewing a List of Variables<br />

Figure 195: The Tools ><br />

Expression List Window<br />

Figure 196: Using Methods in<br />

the Tools > Expression<br />

List Window<br />

The expressions in this window are:<br />

i A variable with one value. The Value column shows its<br />

value.<br />

d1_array An aggregate variable; that is, an array, a structure, a<br />

class, and so on. Its value cannot be displayed in one<br />

line. Consequently, <strong>TotalView</strong> just gives you some information<br />

about the variable. To see more information,<br />

dive on the variable. After diving, <strong>TotalView</strong> displays the<br />

variable in a Variable Window.<br />

d1_array[1].d1_v<br />

When you place an aggregate variable in the Expression<br />

column, you need to dive on it to get more information.<br />

An element in an array of structures. If <strong>TotalView</strong> can<br />

resolve what you enter in the Expression column into a<br />

single value, it displays a value in the Value column. If<br />

<strong>TotalView</strong> can’t, it displays information in the same way<br />

that it displays information in the d1_array example.<br />

d1_array[i-1].d1_v<br />

An element in an array of structures. This expression<br />

differs from the previous example in that the array index<br />

is an expression. Whenever execution stops in the<br />

current thread, <strong>TotalView</strong> reevaluates the i-1 expression.<br />

This means that <strong>TotalView</strong> might display the value<br />

of a different array item every time execution stops.<br />

The expressions you enter cannot include function calls.<br />

You can also enter methods and functions within an Expression. Figure 196<br />

shows two get methods and a get method used in an expression.<br />

306 Chapter 14: Examining and Changing Data

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

Saved successfully!

Ooh no, something went wrong!