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.

Searching and Looking For Program Elements<br />

Figure 140: Edit > Find<br />

Dialog Box<br />

� “Finding the Source Code for Files” on page 227<br />

� “Resetting the Stack Frame” on page 227<br />

Searching for Text<br />

You can search for text strings in most windows using the Edit > Find command.<br />

which displays the following dialog box.<br />

Controls in this dialog box let you:<br />

� Perform case-sensitive searches.<br />

� Continue searching from the beginning of the file if the string isn’t found<br />

in the region beginning at the currently selected line and ending at the<br />

last line of the file.<br />

� Keep the dialog box displayed.<br />

� Tell <strong>TotalView</strong> to search towards the bottom of the file (Down) or the top<br />

(Up).<br />

After you have found a string, you can find another instance of it by using<br />

the Edit > Find Again command.<br />

If you searched for the same string previously, you can select it from the<br />

pulldown list on the right side of the Find text box.<br />

Looking for Functions and Variables<br />

Having <strong>TotalView</strong> locate a variable or a function is usually easier than scrolling<br />

through your sources to look for it. Do this with the View > Lookup<br />

Function and View > Lookup Variable commands. (See Figure 141 on<br />

page 225.)<br />

CLI: dprint variable<br />

If <strong>TotalView</strong> doesn’t find the name and it can find something similar, it displays<br />

a dialog box that contains the names of functions that might match.<br />

(See Figure 142 on page 225.)<br />

If the one you want is listed, click on its name and then choose OK to display<br />

it in the Source Pane.<br />

224 Chapter 12: Debugging Programs

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

Saved successfully!

Ooh no, something went wrong!