30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the CLI Interface<br />

Starting the CLI<br />

You interact with the CLI by entering a CLI or Tcl command. (Entering a Tcl<br />

command does exactly the same thing in the CLI as it does when interacting<br />

with a Tcl interpreter.) Typically, the effect of executing a CLI command<br />

is one or more of the following:<br />

� The CLI displays information about your program.<br />

� A change takes place in your program’s state.<br />

� A change takes place in the information that the CLI maintains about<br />

your program.<br />

After the CLI executes your command, it displays a prompt. Although CLI<br />

commands are executed sequentially, commands executed by your program<br />

might not be. For example, the CLI doesn’t require that your program<br />

be stopped when it prompts for and performs commands. It only requires<br />

that the last CLI command be complete before it can begin executing the<br />

next one. In many cases, the processes and threads being debugged continue<br />

to execute after the CLI finished doing what you asked it to do.<br />

If you need to stop an executing command or Tcl macro, press Ctrl+C<br />

while the command is executing. If the CLI is displaying its prompt, typing<br />

Ctrl+C stops executing processes.<br />

Because actions are occurring constantly, state information and other<br />

kinds of messages that the CLI displays are usually mixed in with the commands<br />

that you type. You might want to limit the amount of information<br />

<strong>TotalView</strong> displays by setting the VERBOSE variable to WARNING or ERROR.<br />

(For more information, see the “Variables” chapter in the <strong>TotalView</strong> Reference<br />

<strong>Guide</strong>.)<br />

Starting the CLI<br />

You can start the CLI in one of the following ways:<br />

� You can start the CLI from the GUI by selecting the Tools > Command<br />

Line command in the Root or Process Windows. After selecting this command,<br />

<strong>TotalView</strong> opens a window into which you can enter CLI commands.<br />

� You can start the CLI directly from a shell prompt by typing totalviewcli.<br />

(This assumes that the <strong>TotalView</strong> binary directory is in your path.)<br />

Figure 139 on page 202 is a snapshot of a CLI window that shows part of a<br />

program being debugged.<br />

If you have problems entering and editing commands, it might be because you<br />

invoked the CLI from a shell or process that manipulates your stty settings.<br />

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

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

Saved successfully!

Ooh no, something went wrong!