🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #60

Fortran and gdb

#60
From: Rodney Peck II
Date: Thu, 06 Jul 1989 19:17
27 lines
1615 bytes
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
Technical Details
Message-ID: <RODNEY.89Jul6151728@fractal.ipl.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!csd4.milw.wisc.edu!leah!rpi!rpi.edu!rodney

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!csd4.milw.wisc.edu!leah!rpi!rpi.edu!rodney
From: rodney@fractal.ipl.rpi.edu (Rodney Peck II)
Newsgroups: gnu.gdb.bug
Subject: Fortran and gdb
Message-ID: <RODNEY.89Jul6151728@fractal.ipl.rpi.edu>
Date: 6 Jul 89 19:17:28 GMT
Sender: usenet@rpi.edu
Distribution: gnu
Organization: Rensselaer Polytechnic Institute Image Processing Lab, Troy NY
Lines: 27