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 How Data is Displayed<br />

Figure 165: An<br />

Untransformed Map<br />

Figure 166: A Transformed<br />

Map<br />

Displaying STL Variables<br />

The C++ STL (Standard Template Library) greatly simplifies the way in which<br />

you can access data. Since it offers standard and prepackaged ways to organize<br />

data, you do not have to be concerned with the mechanics of the<br />

access method. The disadvantage to using the STL while debugging is that<br />

the information debuggers display is organized according to the compiler’s<br />

view of the data, rather than the STL’s logical view. For example, here is how<br />

your compiler sees a map compiled using the GNU C++ compiler (gcc):<br />

Most of the information is generated by the STL template and, in most<br />

cases, is not interesting. In addition, the STL does not aggregate the information<br />

in a useful way.<br />

STLView solves these problems by rearranging (that is, transforming) the data<br />

so that you can easily examine it. For example, here is the transformed map.<br />

Using native and GCC compilers on IBM AIX, IRIX/MIPS, HP Tru64 Alpha,<br />

and Sun Solaris, <strong>TotalView</strong> can transform STL strings, vectors, lists, and<br />

280 Chapter 14: Examining and Changing Data

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

Saved successfully!

Ooh no, something went wrong!