TotalView Online Help : Expression List Window : Expression List Window Overview : What Can You Enter in the Expression Column

What Can You Enter in the Expression Column
You can type a variable or an expression within a cell in the Expression column or, if you select the Add to Expression List command, TotalView can add an entry. The expressions that enter are limited. They cannot contain function calls and they cannot create side-effects. A previous figure showed four different expressions.
i
A variable with one value. The Value column shows its value.
d1_array
An aggregate variable; that is, an array, a structure, a class, and so on. It’s value cannot be displayed in one line. Consequently, TotalView just gives you some information about the variable. To see more information, dive on it. After diving, TotalView displays the variable in a Variable Window.
Whenever you place an aggregate variable in the Expression column, you will need to dive on it to get more information.
d1_array[1].d1_v
This entity is an element within an array of structures. If TotalView can resolve what you enter in the Expression column into a single value, it will display a value in the Value column. If it can’t, TotalView displays information in the same way that it displays information in the d1_array example.
d1_array[i-1].d1_v
This differs from the previous example in that the array index is an expression. Whenever execution stops in the current Thread, TotalView reevaluates i, so that the element within the array that is evaluated may change.
The expressions you enter cannot include function calls.
TotalView can tell you when a variable’s value changes in several ways.
*
If the thread is stopped for another reason—for example, you’ve stepped the thread—and the value has changed, TotalView does not add yellow highlighting to the line.
*
You can tell TotalView to display the Last Value column. Do this by selecting Last Value in the column menu, which is displayed after you click on the column menu () icon.

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