From: Benjamin P Myers <dative@sukrahelitek.com>
To: gdb@sources.redhat.com
Subject: init.c: No such file or directory.
Date: Mon, 09 Jun 2003 19:34:00 -0000 [thread overview]
Message-ID: <200306091434.16661.dative@sukrahelitek.com> (raw)
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
next reply other threads:[~2003-06-09 19:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-09 19:34 Benjamin P Myers [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200306091434.16661.dative@sukrahelitek.com \
--to=dative@sukrahelitek.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox