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.

Manipulating Processes and Threads<br />

Figure 147: The Toolbar<br />

tor. <strong>TotalView</strong> expands this string into a command that <strong>TotalView</strong> sends to the<br />

sh shell.<br />

The default editor is vi. However, <strong>TotalView</strong> uses the editor named in an<br />

EDITOR environment variable, or the editor you name in the Source Code<br />

Editor field of the File > Preferences Launch Strings Page. The online Help<br />

for this page contains information on setting this preference.<br />

Manipulating Processes and Threads<br />

Topics discussed in this section are:<br />

� “Using the Toolbar to Select a Target” on page 228<br />

� “Stopping Processes and Threads” on page 229<br />

� “Updating Process Information” on page 231<br />

� “Holding and Releasing Processes and Threads” on page 231<br />

� “Using Barrier Points” on page 233<br />

� “Holding Problems” on page 234<br />

� “Examining Groups” on page 235<br />

� “Placing Processes in Groups” on page 236<br />

� “Placing Processes in Groups” on page 236<br />

� “Starting Processes and Threads” on page 236<br />

� “Creating a Process Without Starting It” on page 237<br />

� “Creating a Process by Single-Stepping” on page 237<br />

� “Stepping and Setting Breakpoints” on page 237<br />

Using the Toolbar to Select a Target<br />

The Process Window toolbar has three sets of buttons. The first set is a single<br />

pulldown list. It defines the focus of the command selected in the second<br />

set of the toolbar. The third set changes the process and thread being<br />

displayed. The following figure shows this toolbar.<br />

When you are doing something to a multi-process, multi-threaded program,<br />

<strong>TotalView</strong> needs to know which processes and threads it should act on. In<br />

the CLI, you specify this target using the dfocus command. When using the<br />

228 Chapter 12: Debugging Programs

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

Saved successfully!

Ooh no, something went wrong!