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 the Root Window<br />

Button Action Purpose How to Use It<br />

Right Context<br />

menu<br />

Dive Displays more<br />

information or replaces<br />

window contents.<br />

Displays a menu with<br />

commonly used<br />

commands.<br />

Move the cursor over an object, then<br />

click the middle-mouse button.<br />

Move the cursor over an object and<br />

click the button.<br />

Most windows and panes have<br />

context menus; dialog boxes do not<br />

have context menus.<br />

In most cases, a single-click selects what’s under the cursor and a doubleclick<br />

dives on the object. However, if the field is editable, <strong>TotalView</strong> goes<br />

into its edit mode, in which you can alter the selected item's value.<br />

In some places such as the Stack Trace Pane, selecting a line tells <strong>TotalView</strong><br />

to perform an action. In this pane, <strong>TotalView</strong> dives on the selected routine.<br />

(In this case, diving means that <strong>TotalView</strong> finds the selected routine and<br />

shows it in the Source Pane.)<br />

In the line number area of the Source Pane, a left mouse click sets a breakpoint<br />

at that line. <strong>TotalView</strong> shows you that it has set a breakpoint by displaying<br />

a icon instead of a line number.<br />

Selecting the icon a second time deletes the breakpoint. If you<br />

change any of the breakpoint’s properties or if you’ve created an eval point<br />

(indicated by an icon), selecting the icon disables it. For more information<br />

on breakpoints and eval points, see Chapter 16, “Setting<br />

Action Points,” on page 349.<br />

Using the Root Window<br />

The Root Window appears when you start <strong>TotalView</strong>. If you type a program<br />

name immediately after the totalview command, <strong>TotalView</strong> also opens a<br />

Process Window that contains the program’s source code. If you do not<br />

enter a program name when you start <strong>TotalView</strong>, <strong>TotalView</strong> also displays its<br />

File > New Program dialog box. Use this dialog box to enter a program’s<br />

name and information needed to execute that program.<br />

The Root Window displays a list of all the processes and threads being<br />

debugged. Initially—that is, before your program begins executing—the<br />

Root Window just contains the name of the program being debugged. As<br />

your program creates processes and threads, <strong>TotalView</strong> adds them to this<br />

list. Associated with each is a name, location (if a remote process), process<br />

ID, status, and a list of executing threads for each process. It also shows<br />

the thread ID, status, and the routine being executed in each thread.<br />

166 Chapter 8: Using <strong>TotalView</strong> Windows

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

Saved successfully!

Ooh no, something went wrong!