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.

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

If you type an executable name, <strong>TotalView</strong> remembers<br />

that name and many of its arguments.<br />

Debugging a core file totalview executable corefiles<br />

Starts <strong>TotalView</strong> and loads the executable program and<br />

the corefile core file.<br />

Passing arguments to<br />

the program being<br />

debugged<br />

Debugging a<br />

program that runs on<br />

another computer<br />

CLI: dattach –c corefiles –e executable<br />

The corefiles argument lets you name more than one<br />

core file that is associated with the same executable. In<br />

addition, you can use wild cards in the core file name.<br />

totalview executable –a args<br />

Starts <strong>TotalView</strong> and passes all the arguments following<br />

the –a option to the executable program. When you use<br />

the –a option, you must enter it as the last <strong>TotalView</strong><br />

option on the command line.<br />

CLI: totalviewcli executable –a args<br />

If you don’t use the –a option and you want to add arguments<br />

after <strong>TotalView</strong> loads your program, either add<br />

them using the Arguments tab within the<br />

File > New Program dialog box of use the Process ><br />

Startup command.<br />

CLI: dset ARGS_DEFAULT {value}<br />

totalview executable –remote hostname_or_address[:port]<br />

Starts <strong>TotalView</strong> on your local host and the (tvdsvr on a<br />

remote host. After <strong>TotalView</strong> begins executing, it loads<br />

the program specified by executable for remote debugging.<br />

You can specify a host name or a TCP/IP address. If<br />

you need to, you can also enter the TCP/IP port number.<br />

CLI: totalviewcli executable<br />

–r hostname_or_address[:port]<br />

Setting Up Remote Debugging Sessions<br />

If <strong>TotalView</strong> fails to automatically load a remote executable,<br />

you may need to disable autolaunching for this<br />

connection and manually start the tvdsvr. (Autolaunching<br />

is the process of automatically launching tvdsvr processes.)<br />

You can disable autolaunching by adding the<br />

hostname:portnumber suffix to the name you type in the<br />

Host field of the File > New Program dialog box. As always,<br />

the portnumber is the TCP/IP port number on<br />

which <strong>TotalView</strong> server is communicating with<br />

<strong>TotalView</strong>. See “Setting Up and Starting the <strong>TotalView</strong> Server”<br />

on page 81 for more information.<br />

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

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

Saved successfully!

Ooh no, something went wrong!