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.

Changing the Values of Variables<br />

View > Dive Displays the expression or variable in a Variable Window.<br />

Although this command is also on a context<br />

menu, you can just double-click or middle-click on the<br />

variable’s name instead.<br />

Edit > Duplicate Expression<br />

Duplicates the selected column. You would duplicate a<br />

column to see a similar variable or expression. For example,<br />

if myvar_looks_at[i] is in the Expression column,<br />

duplicating it and then modifying the new row is an<br />

easy way to see myvar_looks_at[i] and<br />

myvar_looks_at[i+j-k] at the same time.<br />

This command is also on a context menu.<br />

Changing the Values of Variables<br />

You can change the value of any variable or the contents of any memory<br />

location displayed in a Variable Window, Expression List Window, or Stack<br />

Frame Pane by selecting the value and typing the new value. In addition to<br />

typing a value, you can also type an expression. For example, you can enter<br />

12*12 as shown in the following figure. You can include logical operators in<br />

all <strong>TotalView</strong> expressions. (See Figure 199. )<br />

CLI: set my_var [expr 1024*1024]<br />

dassign int8_array(3) $my_var<br />

In most cases, you can edit a variable’s value. If you right-click on a variable<br />

and the Change Value command isn’t faded, you can edit the displayed<br />

value.<br />

310 Chapter 14: Examining and Changing Data

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

Saved successfully!

Ooh no, something went wrong!