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.

Loading Programs<br />

Figure 56: Attaching to<br />

an existing process<br />

When you exit from <strong>TotalView</strong>, <strong>TotalView</strong> kills all programs and processes that it started.<br />

However, programs and processes that were executing before you brought them under<br />

<strong>TotalView</strong>’s control continue to execute.<br />

While you must link programs that use fork() and execve() with the<br />

<strong>TotalView</strong> dbfork library so that <strong>TotalView</strong> can automatically attach to them<br />

when your program creates them, programs that you attach to need not be<br />

linked with this library.<br />

You cannot attach to processes running on another host if you are using<br />

<strong>TotalView</strong> Individual.<br />

Detaching from Processes<br />

You can either detach from a group of processes or detach from one process.<br />

Use the Group > Detach command to remove attached processes within a<br />

control group. As <strong>TotalView</strong> executes this command, it eliminates all of the<br />

state information related to these processes. If <strong>TotalView</strong> didn’t start a process,<br />

it continues executing in its normal run-time environment.<br />

Process > Detach Command<br />

ddetach Command<br />

Thread > Continuation Signal Command<br />

62 Chapter 4: Setting Up a Debugging Session

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

Saved successfully!

Ooh no, something went wrong!