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.

Displaying Fortran Types<br />

Figure 206: Fortran<br />

Modules Window<br />

If you are using the SUNPro compiler, <strong>TotalView</strong> can only display module data if you force<br />

it to read the debug information for a file that contains the module definition or a module<br />

function. For more information, see “Finding the Source Code for Functions” on page 225.<br />

Debugging Fortran 90 Modules<br />

Fortran 90 lets you place functions, subroutines, and variables inside modules.<br />

You can then include these modules elsewhere by using a USE command.<br />

When you do this, the names in the module become available in the<br />

using compilation unit, unless you either exclude them with a USE ONLY<br />

statement or rename them. This means that you don’t need to explicitly<br />

qualify the name of a module function or variable from the Fortran source<br />

code.<br />

When debugging this kind of information, you need to know the location of<br />

the function being called. Consequently, <strong>TotalView</strong> uses the following syntax<br />

when it displays a function contained in a module:<br />

modulename`functionname<br />

You can also use this syntax in the File > New Program and View > Lookup<br />

Variable commands.<br />

Fortran 90 also lets you create a contained function that is only visible in<br />

the scope of its parent and siblings. There can be many contained func-<br />

326 Chapter 14: Examining and Changing Data

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

Saved successfully!

Ooh no, something went wrong!