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.

Using Built-in and Group Aliases<br />

t1.7> The current focus is thread 7 of process 1.<br />

gW3.> The current focus is all worker threads in the control<br />

group that contains process 3.<br />

p3/3 The current focus is all processes in process 3, group 3.<br />

You can change the prompt’s appearance by using the dset command to<br />

set the PROMPT state variable; for example:<br />

dset PROMPT "Kill this bug! > "<br />

Using Built-in and Group Aliases<br />

Many CLI commands have an alias that let you abbreviate the command’s<br />

name. (An alias is one or more characters that Tcl interprets as a command<br />

or command argument.)<br />

The alias command, which is described in the <strong>TotalView</strong> Reference <strong>Guide</strong>, lets you create<br />

your own aliases.<br />

For example, the following command tells the CLI to halt the current group:<br />

dfocus g dhalt<br />

Using an abbreviation is easier. The following command does the same thing:<br />

f g h<br />

You often type less-used commands in full, but some commands are<br />

almost always abbreviated. These commands include dbreak (b), ddown<br />

(d), dfocus (f), dgo (g), dlist (l), dnext (n), dprint (p), dstep (s), and dup (u).<br />

The CLI also includes uppercase group versions of aliases for a number of<br />

commands, including all stepping commands. For example, the alias for<br />

dstep is s; in contrast, S is the alias for dfocus g dstep. (The first command<br />

tells the CLI to step the process. The second steps the control group.)<br />

Group aliases differ from the group-level command that you type interactively,<br />

as follows:<br />

� They do not work if the current focus is a list. The g focus specifier modifies<br />

the current focus, and can only be applied if the focus contains just<br />

one term.<br />

� They always act on the group, no matter what width is specified in the<br />

current focus. Therefore, dfocus t S does a step-group command.<br />

208 Chapter 10: Using the CLI

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

Saved successfully!

Ooh no, something went wrong!