From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2249 invoked by alias); 9 Jun 2003 19:42:15 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2094 invoked from network); 9 Jun 2003 19:42:13 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 9 Jun 2003 19:42:13 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19PSXQ-0000gl-00; Mon, 09 Jun 2003 14:42:40 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19PSWd-0002dT-00; Mon, 09 Jun 2003 15:41:51 -0400 Date: Mon, 09 Jun 2003 19:42:00 -0000 From: Daniel Jacobowitz To: Benjamin P Myers Cc: gdb@sources.redhat.com Subject: Re: init.c: No such file or directory. Message-ID: <20030609194144.GA10114@nevyn.them.org> Mail-Followup-To: Benjamin P Myers , gdb@sources.redhat.com References: <200306091434.16661.dative@sukrahelitek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306091434.16661.dative@sukrahelitek.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00112.txt.bz2 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 > > > gdb ./a.out > GNU gdb 5.2.1 > 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 > (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 > > 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