[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

g77/fort77 and gdb



Greetings, Debian users,

Does anyone know whether it is possible to get gdb to work with Fortran? 
(g77 or fort77) The documentation says it should work (with certain
caveats e.g. you can't see data in a common block, which is more feature
than bug IMHO).  Both the systems I use are standard Debian 2.1 (slink). I
have tried the obvious: 

${fort77,g77} -g foo.f
$gdb a.out
 
However if I then type

(gdb) list

in order to look at the code I get an error. For g77 it is:

../../../../libf2c/libF77/main.c:46: No such file or directory
(which there certainly isn't)

while for fort77 it is:

Can't find a default source file

I picked through the g77 docs and found the suggestion that I try 
g77 -gstabs instead of g77 -g but that didn't work.

Any suggestions?

Many TIA

Hugh

==========================================================================
Dr. Hugh C. Pumphrey             | Tel. 0131-650-6026,Fax:0131-650-5780
Department of Meteorology        | Replace 0131 with +44-131 if outside UK
The University of Edinburgh      | Email hcp@met.ed.ac.uk
EDINBURGH EH9 3JZ, Scotland      | URL: http://www.met.ed.ac.uk/~hcp
===========================================================================


Reply to: