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

gdb not able to display the contents of source code



$cat helloworld.f90
PROGRAM helloworld
   IMPLICIT NONE

   PRINT *, "Just for testing purposes"
END PROGRAM helloworld


$gfortran -g -Wall helloworld.f90

$./a.out
Just for testing purposes

$gdb ./a.out
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) list
1       ../sysdeps/i386/elf/start.S: No such file or directory.
       in ../sysdeps/i386/elf/start.S
(gdb)

Is this a (un)known bug? why is the list command not working? What am I doing wrong?


Using Debian unstable, gfortran 4.0.1-2, kernel 2.6.9-1-686.

TIA
raju



Reply to: