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.

Using Programming Language Elements<br />

Figure 241: Class Casting<br />

If your program does not use a templated function within a library, your compiler may<br />

not include a reference to the function in the symbol table. That is, <strong>TotalView</strong> does not<br />

create template instances. In some cases, you might be able to overcome this limitation<br />

by preloading the library. However, this only works with some compilers. Most compilers<br />

only generate STL operators if your program uses them.<br />

You can use the following C and C++ data types and declarations:<br />

� You can use all standard data types such as char, short, int, float, and<br />

double, modifiers to these data types such as long int and unsigned int,<br />

and pointers to any primitive type or any named type in the target program.<br />

� You can only use simple declarations. Do not define stuct, class, enum or<br />

union types or variables.<br />

You can define a pointer to any of these data types. If an enum is already<br />

defined in your program, you can use that type when defining a variable.<br />

� The extern and static declarations are not supported.<br />

You can use the following the C and C++ language statements.<br />

� You can use the goto statement to define and branch to symbolic labels.<br />

These labels are local to the window. You can also refer to a line number<br />

in the program. This line number is the number displayed in the Source<br />

Pane. For example, the following goto statement branches to source line<br />

number 432 of the target program:<br />

goto 432;<br />

� Although you can use function calls, you can’t pass structures.<br />

� You can use type casting.<br />

386 Chapter 17: Evaluating Expressions

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

Saved successfully!

Ooh no, something went wrong!