This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

init.c: No such file or directory.


I'm using Absoft's ProFortran f77 compiler on SuSE.  I was able to use gdb on 
SuSE-7.2 prior to my reinstall of SuSE-8.1, but now I get this error:

> f77 -g hello.f
<snip>
> gdb ./a.out
GNU gdb 5.2.1 <snip>
This GDB was configured as "i586-suse-linux"...
(gdb) list
1       init.c: No such file or directory.
        in init.c
(gdb)

According to the docs, Absoft's f77 writes out in 'dwarf' format, so I tried a 
'hello world' with gcc:

> gcc -gdwarf hello.c
> gdb ./a.out  <snip>
(gdb) list
1       init.c: No such file or directory.
        in init.c
(gdb)

So I download and build gdb-5.3:

> cp gdb-5.3/gdb/gdb ~/bin
> gcc -gdwarf hello.c
> ~/bin/gdb ./a.out
GNU gdb 5.3
<snip>
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) list
1       init.c: No such file or directory.
        in init.c
(gdb)

> gcc --version
gcc (GCC) 3.2

> ld -v
GNU ld version 2.12.90.0.15 20020717 (SuSE)

> ls /lib/ld-*.so
/lib/ld-2.2.5.so

I have also tried gcc-2.95.3 with the same result.  The gdb mailing list 
archives suggest that gdb can't find the source file and that I do a 'dir .' 
in gdb before i 'list', but i got the same error.

Anyone have any suggestions?

Thanks for your help.
-ben




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]