[gnu.gdb.bug] Fortran and gdb

rodney@fractal.ipl.rpi.edu (Rodney Peck II) (07/07/89)

hi there, I just installed gdb and gcc on my sun4 running os4 and I'm trying
to debug some fortran code which calls C routines for sunview interfacing.

Unfortunately, it seems that gdb doesn't know what is going on with Fortran
(not suprising, I don't either).  Whenever I try to reference a symbol which
was defined in the fortran, it says:
"Invalid symbol data: unknown symbol-type code `X' at symtab pos 13."

(here's an example yanked out of a gdb run...)
sun.ipl.rpi.edu% gdb example
GDB 3.1.2, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /home/rodney/suns/pc/icsdist/example...done.
Type "help" for a list of commands.
(gdb) break init
Invalid symbol data: unknown symbol-type code `X' at symtab pos 13.
(gdb) 

  My inexperienced guess is that the symbol-type code `X' is used in
fortran type programs.  Am I right?

  Has anyone written stuff to make GDB work with fortran? (I'm using 3.1.2)

--
Rodney