Sorting, Reordering, and Editing
This section describes operations you can perform on Tools > Expression List Window data.
Sorting Contents
You can sort the contents of the Tools > Expression List Window by clicking on the column header. After you click on the header, TotalView adds an indicator that shows that the column was sorted and the way in which it was sorted. In the figure in the previous topic, the Value column is sorted in ascending order.
Reordering Row Display
The up and down arrows (
) on the right side of the
Tools > Expression List Window toolbar let you change the order in which TotalView displays rows. For example, clicking the down arrow moves the currently selected row (indicated by the highlight) one row lower in the display.
Editing Expressions
You can change an expression by clicking in it, and then typing new characters and deleting others. Select
Edit > Reset Defaults to remove all edits you have made. When you edit an expression, TotalView uses the scope that existed when you created the variable.
Changing Data Type
You can edit an expression’s data type by displaying the
Type column and making your changes. Select
Edit > Reset Defaults to remove all edits you have made.
Changing an Expression’s Value
You can change an expression’s value if that value is stored in memory by editing the contents of the Value column.
About Other Commands
You can also use the following commands when working with expressions:
Edit > Delete Expression
Deletes the selected row. This command is also on a context (right-click) menu. If you have more than one Expression List Window open, deleting a row from one window deletes the row from all open windows.
Edit > Delete All Expressions
Deletes all of the Expression List Window rows. If you have more than one Expression List Window open, deleting all expressions from one window deletes all expressions in all windows.
View > Dive
Displays the expression or variable in a Variable Window. Although this command is also on a context menu, you can just double-click or middle-click on the variable’s name instead.
Edit >Duplicate Expression
Duplicates the selected column. You would duplicate a column to see a similar variable or expression. For example, if myvar_looks_at[i] is in the Expression column, duplicating it and then modifying the new row is an easy way to see myvar_looks_at[i] and myvar_looks_at[i+j-k] at the same time.
This command is also on a context menu.