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 144: Undive/Dive<br />

Controls<br />

Figure 145: Ambiguous<br />

Function Dialog Box<br />

When you want to return to the previous contents of the Source Pane, use<br />

the Backward button located in the upper-right corner of the Source Pane<br />

and just below the Stack Frame Pane. In Figure 144, a rectangle surrounds<br />

this button.<br />

You can also use the View > Reset command to discard the dive stack so<br />

that the Source Pane is displaying the PC it displayed when you last<br />

stopped execution.<br />

Another method of locating a function’s source code is to dive into a<br />

source statement in the Source Pane that shows the function being called.<br />

After diving, you see the source.<br />

Resolving Ambiguous Names<br />

Sometimes the function name you specify is ambiguous. For example, you<br />

might have specified the name of:<br />

� A static function, and your program contains different versions of it.<br />

� A member function in a C++ program, and multiple classes have a<br />

member function with that name.<br />

� An overloaded function or a template function.<br />

The following figure shows the dialog box that <strong>TotalView</strong> displays when it<br />

encounters an ambiguous function name. You can resolve the ambiguity by<br />

clicking the function name.<br />

226 Chapter 12: Debugging Programs

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

Saved successfully!

Ooh no, something went wrong!