Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Benjamin P Myers <dative@sukrahelitek.com>
Cc: gdb@sources.redhat.com
Subject: Re: init.c:  No such file or directory.
Date: Mon, 09 Jun 2003 19:42:00 -0000	[thread overview]
Message-ID: <20030609194144.GA10114@nevyn.them.org> (raw)
In-Reply-To: <200306091434.16661.dative@sukrahelitek.com>

On Mon, Jun 09, 2003 at 02:34:16PM -0500, Benjamin P Myers wrote:
> 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?

Is it a problem?  Can you list your program's entry point and set
breakpoints?

That suggests that the init.c is coming from gcc/glibc, and has debug
information.  It's not associated with your application.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-06-09 19:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-09 19:34 Benjamin P Myers
2003-06-09 19:42 ` Daniel Jacobowitz [this message]
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=20030609194144.GA10114@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=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