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 155: Stepping<br />

Illustrated<br />

Using Stepping Commands<br />

Using Stepping Commands<br />

While different programs have different requirements, the most common<br />

stepping mode is to set group focus to Control and the target to Process or<br />

Group. You can now select stepping commands from the Process or Group<br />

menus or use commands in the toolbar.<br />

CLI: dfocus g<br />

The following figure illustrates stepping commands.<br />

Out<br />

Next<br />

dfocus p<br />

The arrow indicates that the PC is at line 15. The four stepping commands<br />

do the following:<br />

� Next executes line 15. After stepping, the PC is at line 16.<br />

� Step moves into the sub2() function. The PC is at line 21.<br />

� Run To executes all lines until the PC reaches the selected line, which is<br />

line 23.<br />

� Out executes all statements within sub1() and exits from the function. The<br />

PC is at line 9. If you now execute a Step command, <strong>TotalView</strong> steps into<br />

sub3().<br />

Remember the following things about single-stepping commands:<br />

� To cancel a single-step command, select Group > Halt or Process > Halt.<br />

CLI: dhalt<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 239<br />

Step<br />

Run To

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

Saved successfully!

Ooh no, something went wrong!