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 199: Using an<br />

Expression to Change a<br />

Value<br />

Changing a Variable’s Data Type<br />

<strong>TotalView</strong> does not let you directly change the value of bit fields; you can<br />

use the Tools > Evaluate Window to assign a value to a bit field. See Chapter<br />

17, “Evaluating Expressions,” on page 381.<br />

CLI: Tcl lets you use operators such as & and | to manipulate bit fields<br />

on Tcl values.<br />

Changing a Variable’s Data Type<br />

The data type declared for the variable determines its format and size<br />

(amount of memory). For example, if you declare an int variable, <strong>TotalView</strong><br />

displays the variable as an integer.<br />

The following sections discuss the different aspects of data types:<br />

� “Displaying C and C++ Data Types” on page 312<br />

� “Viewing Pointers to Arrays” on page 314<br />

� “Viewing Arrays” on page 314<br />

� “Viewing typedef Types” on page 315<br />

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

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

Saved successfully!

Ooh no, something went wrong!