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.

Figure 202: Displaying<br />

wchar_t Data<br />

Changing a Variable’s Data Type<br />

If the wide character uses from 9 to 16 bits, <strong>TotalView</strong> displays the character<br />

using the following universal-character code representation:<br />

\uXXXX<br />

X represents a hexadecimal digit. If the character uses from 17 to 32 bits,<br />

<strong>TotalView</strong> uses the following representation:<br />

\UXXXXXXXX<br />

Platforms and compilers differ in the way they represent wchar_t. In consequence,<br />

<strong>TotalView</strong> allows you to see this information in platform-specific ways. For example, you<br />

can cast a string to $wstring_s16 or $wstring_s32. In addition, many compilers<br />

have problems either using wide characters or handing off information about wide characters<br />

so that they can be interpreted by any debugger (not just <strong>TotalView</strong>). For information<br />

on supported compilers, see the <strong>TotalView</strong> Release Notes at http://www.totalviewtech.com/Support/release_notes.php.<br />

Viewing Areas of Memory ($void Data Type)<br />

<strong>TotalView</strong> uses the $void data type for data of an unknown type, such as<br />

the data contained in registers or in an arbitrary block of memory. The<br />

$void type is similar to the int type in the C Language.<br />

If you dive on registers or display an area of memory, <strong>TotalView</strong> lists the<br />

contents as a $void data type. If you display an array of $void variables, the<br />

index for each object in the array is the address, not an integer. This<br />

address can be useful when you want to display large areas of memory.<br />

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

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

Saved successfully!

Ooh no, something went wrong!