30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Changing a Variable’s Data Type<br />

When editing an array’s dimension, you can enter just the extent (if using<br />

the default lower bound), or you can enter the lower and upper bounds<br />

separated by a colon.<br />

<strong>TotalView</strong> also lets you display a subsection of an array, or filter a scalar array<br />

for values that match a filter expression. See “Displaying Array Slices” on<br />

page 334 and “Filtering Array Data Overview” on page 337 for more information.<br />

Viewing typedef Types<br />

<strong>TotalView</strong> recognizes the names defined with typedef, and displays these<br />

user-defined types; for example:<br />

typedef double *dptr_t;<br />

dptr_t p_vbl;<br />

<strong>TotalView</strong> displays the type for p_vbl as dptr_t.<br />

Viewing Structures<br />

<strong>TotalView</strong> lets you use the struct keyword as part of a type string. In most<br />

cases, this is optional.<br />

This behavior depends upon which compiler you are using. In most cases, you’ll see<br />

what is described here.<br />

If you have a structure and another data type with the same name, however,<br />

you must include the struct keyword so that <strong>TotalView</strong> can distinguish<br />

between the two data types.<br />

If you use a typedef statement to name a structure, <strong>TotalView</strong> uses the<br />

typedef name as the type string. Otherwise, <strong>TotalView</strong> uses the structure tag<br />

for the struct.<br />

Viewing Unions<br />

<strong>TotalView</strong> displays a union in the same way that it displays a structure.<br />

Even though the fields of a union are overlaid in storage, <strong>TotalView</strong> displays<br />

the fields on separate lines. (See Figure 201 on page 316.)<br />

CLI: dprint variable<br />

Casting Using the Built-In Types<br />

<strong>TotalView</strong> provides a number of predefined types. These types are preceded<br />

by a $. You can use these built-in types anywhere you can use the<br />

ones defined in your programming language. These types are also useful in<br />

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

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

Saved successfully!

Ooh no, something went wrong!