[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.6 Options for Debugging Your Program or GNU Fortran

GNU Fortran has various special options that are used for debugging either your program or g77.

-g
Produce debugging information in the operating system's native format (stabs, COFF, XCOFF, or DWARF). GDB can work with this debugging information.

Support for this option in Fortran programs was incomplete up till version 0.5.26 of g77. In particular, names of variables and arrays in common blocks or that are storage-associated via EQUIVALENCE were unavailable to the debugger.

However, version 0.5.19 of g77 does provide this information in a rudimentary way, as controlled by the `-fdebug-kludge' option.

Because version 0.5.26 of g77 enables full debug information of COMMON BLOCK and EQUIVALENCE items, this option has been disabled.

See section Options for Code Generation Conventions, for more information.

See section `Options for Debugging Your Program or GNU CC' in Using and Porting GNU CC, for more information on debugging options.



This document was generated by (Blade) GNU s/w Owner on November, 3 2001 using texi2html