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.

c<br />

h<br />

a<br />

p<br />

t<br />

e<br />

r<br />

11<br />

Seeing the CLI<br />

at Work<br />

The CLI is a command-line debugger that is completely integrated<br />

with <strong>TotalView</strong>. You can use it and never use the <strong>TotalView</strong> GUI, or<br />

you can use it and the GUI simultaneously. Because the CLI is<br />

embedded in a Tcl interpreter, you can also create debugging functions<br />

that exactly meet your needs. When you do this, you can use<br />

these functions in the same way that you use <strong>TotalView</strong>’s built-in CLI<br />

commands.<br />

This chapter contains macros that show how the CLI programmatically<br />

interacts with your program and with <strong>TotalView</strong>. Reading examples<br />

without bothering too much with details gives you an appreciation<br />

for what the CLI can do and how you can use it. With a basic<br />

knowledge of Tcl, you can make full use of all CLI features.<br />

In each macro in this chapter, all Tcl commands that are unique to<br />

the CLI are displayed in bold. These macros perform the following<br />

tasks:<br />

� “Setting the CLI EXECUTABLE_PATH Variable” on page 214<br />

� “Initializing an Array Slice” on page 215<br />

� “Printing an Array Slice” on page 215<br />

� “Writing an Array Variable to a File” on page 217<br />

� “Automatically Setting Breakpoints” on page 218<br />

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

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

Saved successfully!

Ooh no, something went wrong!