Dose GDB support Fortran Cods?

Wu Zhou woodzltc@cn.ibm.com
Mon Aug 8 05:24:00 GMT 2005


> command line,I use "gdb test",then I enter "list",but screen displays:
> 
>     1       ../sysdeps/i386/elf/start.S: No such file or directory.
>         in ../sysdeps/i386/elf/start.S

This is a bug in GDB, we ever discussed a similar problem in: 
http://sources.redhat.com/ml/gdb/2005-07/msg00228.html.

BTW: there will be more chance you gdb/fortran problems get answered if 
you ask in gdb@sources.redhat.com or fortran@gcc.gnu.org. It seems that 
few people read bug-gdb@. :-)

>      GDB in my computer was configured as "i386-redhat-linux-gnu",it
> is GNU gdb Red Hat Linux (5.3post-0.20021129.18rh).
> 
>     In the manual page it is said GDB does support Fortran code,but I 
> don't know why it doesn't work here.

Yes.  GDB does support Fortran.  You can simply ignore the above problem, 
and go on with the debugging of your program.  For example, you can set 
breakpoints at MAIN__, or any other function or lines, you can start the 
process by "run" command, and so on...

Regards
- Wu Zhou



More information about the Fortran mailing list