g77/gdb problem

Toon Moene toon@moene.indiv.nluug.nl
Tue Aug 3 11:51:00 GMT 1999


Andy McWilliam wrote:

>   I'm having a problem with g77 in debug mode, with the gdb debugger.
> The problem is that COMMON block variables cannot be displayed by gdb.
> I tried the -fdebug-kludge option on g77, but I still am not able to
> see the value of the variables.

This has not changed since the egcs-1.1.2 release (which is used on Red
Hat 6.0), so the current online documentation should explain this (of
course, this should also be in the info files on your system, unless RH
6.0 is broken in this regard).

See: http://egcs.cygnus.com/onlinedocs/g77_18.html#SEC555

and references therein.

> There is a comment in the info page that the -fdebug-kludge option will
> disappear when g77 is made to work properly with gdb.

Richard Henderson said - during the Fortran Birds of a Feather session
at LinuxExpo this May - that he had a series of patches for the Fortran
frontend that would enable real debugging info for COMMON blocks. 
Perhaps he's willing to try them out on the main trunk, so that it might
be installed in time for the gcc-2.96 release ...

If it works OK, there's no use to continue the support of
-fdebug-kludge.

> I have redhat 6.0 linux running.  Can you help?

Hope this helps,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html


More information about the Gcc-bugs mailing list