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.

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

Before Version 6.0, you placed your personal .tvdrc file in your home directory. If you<br />

do not move this file to the .totalview directory, <strong>TotalView</strong> will still find it. However, if<br />

you also have a tvdrc file in the .totalview directory, <strong>TotalView</strong> ignores the .tvdrc file<br />

in your home directory.<br />

<strong>TotalView</strong> automatically writes your preferences file to your .totalview subdirectory.<br />

Its name is preferences6.tvd. Do not modify this file as <strong>TotalView</strong><br />

overwrites it when it saves your preferences.<br />

If you add the –s filename option to either the totalview or totalviewcli shell<br />

command, <strong>TotalView</strong> executes the CLI commands contained in filename.<br />

This startup file executes after a tvdrc file executes. The –s option lets you,<br />

for example, initialize the debugging state of your program, run the program<br />

you’re debugging until it reaches some point where you’re ready to<br />

begin debugging, and even create a shell command that starts the CLI.<br />

The following figureFigure 51 shows the order in which <strong>TotalView</strong> executes<br />

initialization and startup files.<br />

Figure 51: Startup and<br />

Initialization Sequence preferences6.tvd<br />

.Xdefaults<br />

global tvdinit.tvd<br />

global .tvdrc<br />

-e and –s<br />

The .Xdefaults file, which is actually read by the server when you start<br />

XWindows, is only used by the GUI. The CLI ignores it.<br />

The tvdinit.tvd file resides in the <strong>TotalView</strong> lib directory. It contains startup<br />

macros that <strong>TotalView</strong> requires. Do not edit this file. Instead, if you want to<br />

globally set a variable or define or run a CLI macro, create a file named<br />

.tvdrc and place it in the <strong>TotalView</strong> lib directory.<br />

As part of the initialization process, <strong>TotalView</strong> exports three environment<br />

variables into your environment: LM_LICENSE_FILE, TVROOT, and either<br />

SHLIB_PATH or LD_LIBRARY_PATH.<br />

If you have saved an action point file to the same subdirectory as your program,<br />

<strong>TotalView</strong> automatically reads the information in this file when it<br />

loads your program.<br />

You can also invoke scripts by naming them in the TV::process_load_callbacks<br />

list. For information on using this variable, see the “Variables” chapter of the<br />

<strong>TotalView</strong> Reference <strong>Guide</strong>.<br />

If you are debugging multi-process programs that run on more than one<br />

computer, <strong>TotalView</strong> caches library information in the .totalview subdirectory.<br />

If you want to move this cache to another location, set<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 57<br />

tvdrc<br />

a local .tvdrc<br />

command options<br />

executable.tvd

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

Saved successfully!

Ooh no, something went wrong!