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.

Executing to a Selected Line<br />

If the PC is in assembler code—this can happen, for example, if you halt<br />

your program while it’s executing in a library—a Next operation executes<br />

the next instruction. If you want to execute out of the assembler code so<br />

your back in your code, select the Out command. You might need to select<br />

Out a couple of times until your back to where you want to be.<br />

Executing to a Selected Line<br />

If you don’t need to stop execution every time execution reaches a specific<br />

line, you can tell <strong>TotalView</strong> to run your program to a selected line or<br />

machine instruction. After selecting the line on which you want the program<br />

to stop, invoke one of the eight Run To commands defined within the<br />

GUI. These commands are on the Group, Process, and Thread menus.<br />

CLI: dfocus ... duntil<br />

Executing to a selected line is discussed in greater depth in Chapter 13,<br />

“Using Groups, Processes, and Threads,” on page 251.<br />

If your program reaches a breakpoint while running to a selected line,<br />

<strong>TotalView</strong> stops at that breakpoint.<br />

If your program calls recursive functions, you can select a nested stack<br />

frame in the Stack Trace Pane. When you do this, <strong>TotalView</strong> determines<br />

where to stop execution by looking at the following:<br />

� The frame pointer (FP) of the selected stack frame.<br />

� The selected source line or instruction.<br />

CLI: dup and ddown<br />

Executing Out of a Function<br />

You can step your program out of a function by using the Out commands.<br />

The eight Out commands in the GUI are located on the Group, Process, and<br />

Thread menus.<br />

CLI: dfocus ... dout<br />

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

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

Saved successfully!

Ooh no, something went wrong!