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.

Figure 117: Line Numbers<br />

with Stop Icon and PC<br />

Arrow<br />

Viewing the Assembler Version of Your Code<br />

� The information displayed in the Stack Trace and Stack Frame Panes reflects<br />

the state of a process when it was last stopped. Consequently, the<br />

information that they display is not up-to-date while a thread is running.<br />

� The left margin of the Source Pane displays line numbers and action point<br />

icons. You can place a breakpoint at any line whose line number is contained<br />

within a box. The box indicates that executable code was created<br />

by the source code.<br />

When you place a breakpoint on a line, <strong>TotalView</strong> places a icon over<br />

the line number. An arrow over the line number shows the current location<br />

of the program counter (PC) in the selected stack frame. (See Figure 117.)<br />

Each thread has its own unique program counter (PC). When you stop a<br />

multi-process or multi-threaded program, the routine displayed in the<br />

Stack Trace Pane for a thread depends on the thread’s PC. Because<br />

threads execute asynchronously, threads are stopped at different places.<br />

(When your thread hits a breakpoint, the default is to stop all the other<br />

threads in the process as well.)<br />

� The tabbed area at the bottom contains a set of tabs whose information<br />

yo u can hide or display as you need it. In addition, the P+, P-, T+, and T-<br />

buttons within this area allow you to change the Process Window’s context<br />

by moving to another process or thread.<br />

The Action Points Tab with the Tabs Pane shows the list of breakpoints, eval<br />

points, and watchpoints for the process. The Processes/Ranks tab displays a<br />

grid of all of your program’s processes. The grid’s element’s shows process<br />

status and indicates the selected group. Selecting a process<br />

switches the context to the first thread in that process.<br />

The Threads Tab shows each thread and information about the thread.<br />

Selecting a process switches the context to the that thread.<br />

Viewing the Assembler Version of<br />

Your Code<br />

You can display your program in source or assembler. You can use the following<br />

commands:<br />

Source code (Default)<br />

Select the View > Source As > Source command.<br />

Assembler code Select the View > Source As > Assembler command.<br />

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

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

Saved successfully!

Ooh no, something went wrong!