public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* init.c:  No such file or directory.
@ 2003-06-09 19:34 Benjamin P Myers
  2003-06-09 19:42 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin P Myers @ 2003-06-09 19:34 UTC (permalink / raw)
  To: gdb

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-09 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09 19:34 init.c: No such file or directory Benjamin P Myers
2003-06-09 19:42 ` Daniel Jacobowitz
2003-06-09 20:09   ` Benjamin P Myers
2003-06-09 20:17     ` Daniel Jacobowitz
2003-06-09 20:41       ` Benjamin P Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).