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.

Starting <strong>TotalView</strong><br />

Figure 50: File > New<br />

Program Dialog<br />

Box<br />

Debugging a<br />

program<br />

<strong>TotalView</strong> to load your program. (See Figure 50 on<br />

page 54.)<br />

CLI: totalviewcli then dload executable<br />

Notice the two checkboxes on the Program tab. These<br />

checkboxes let you enable memory debugging and enable<br />

notifications—notifications tell <strong>TotalView</strong> to stop<br />

executing when memory events occur.<br />

Starting on Mac OS X<br />

If you installed <strong>TotalView</strong> on a Macintosh using the application<br />

bundle, you can click on the <strong>TotalView</strong> icon. If<br />

you’ve installed the .dmg version, you can start<br />

<strong>TotalView</strong> from an xterm by typing:<br />

install_path/<strong>TotalView</strong>.app/totalview<br />

where install_path is where <strong>TotalView</strong> is installed.<br />

If the way <strong>TotalView</strong> was installed on your system was<br />

not installed without procmod permission, you will not<br />

be able to debug programs. If <strong>TotalView</strong> detects this<br />

problem, it displays a dialog box containing information<br />

describing what you should do.<br />

totalview executable<br />

Starts <strong>TotalView</strong> and loads the executable program.<br />

CLI: totalviewcli executable<br />

If you installed <strong>TotalView</strong> on a Macintosh using the application<br />

bundle, you can drag your program’s executable<br />

to the <strong>TotalView</strong> icon on your desktop.<br />

54 Chapter 4: Setting Up a Debugging Session

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

Saved successfully!

Ooh no, something went wrong!