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.

Introducing the CLI<br />

Introducing the CLI<br />

The Command Line Interpreter, or CLI, contains an extensive set of commands<br />

that you can type into a command window. These commands are<br />

embedded in a version of the Tcl command interpreter. When you open a<br />

CLI window, you can enter any Tcl statements that you could enter in any<br />

version of Tcl. You can also enter commands that <strong>TotalView</strong> Technologies<br />

has added to Tcl that allow you to debug your program. Because these<br />

debugging commands are native to this Tcl, you can also use Tcl to manipulate<br />

the program being debugged. This means that you can use the CLI to<br />

create your own commands or perform any kind of repetitive operation.<br />

For example, the following code shows how to set a breakpoint at line 1038<br />

using the CLI:<br />

dbreak 1038<br />

When you combine Tcl and <strong>TotalView</strong>, you can simplify what you are doing.<br />

For example, the following code shows how to set a group of breakpoints:<br />

foreach i {1038 1043 1045} {<br />

dbreak $i<br />

}<br />

Chapter 11, “Seeing the CLI at Work,” on page 213 presents more realistic<br />

examples.<br />

Information about the CLI is scattered throughout this book. Chapter 3 of<br />

the <strong>TotalView</strong> Reference <strong>Guide</strong> contains descriptions of most CLI commands.<br />

What’s Next<br />

This chapter has presented just a few <strong>TotalView</strong> highlights. The rest of this<br />

book tells you more about <strong>TotalView</strong>.<br />

All <strong>TotalView</strong> documentation is available on our Web site at<br />

http://www.totalviewtech.com/Documentation in PDF and HTML formats.<br />

You can also find this information in the online Help.<br />

14 Chapter 1: Getting Started with <strong>TotalView</strong>

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

Saved successfully!

Ooh no, something went wrong!