From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4114 invoked by alias); 9 Jun 2003 20:09:01 -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 4069 invoked from network); 9 Jun 2003 20:09:00 -0000 Received: from unknown (HELO paranoia.sukrahelitek.com) (12.216.5.59) by sources.redhat.com with SMTP; 9 Jun 2003 20:09:00 -0000 Received: from sukra (unknown [192.182.32.12]) by paranoia.sukrahelitek.com (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 257D62F88D for ; Mon, 9 Jun 2003 15:05:06 -0500 (CDT) Content-Type: text/plain; charset="iso-8859-1" From: Benjamin P Myers To: gdb@sources.redhat.com Subject: Re: init.c: No such file or directory. Date: Mon, 09 Jun 2003 20:09:00 -0000 User-Agent: KMail/1.4.3 References: <200306091434.16661.dative@sukrahelitek.com> <20030609194144.GA10114@nevyn.them.org> In-Reply-To: <20030609194144.GA10114@nevyn.them.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306091508.59192.dative@sukrahelitek.com> X-SW-Source: 2003-06/txt/msg00113.txt.bz2 On Monday 09 June 2003 14:41, Daniel Jacobowitz wrote: > 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. It is a problem more for the other people I work with than I, because they= =20 debug quite a bit more fortran code (and like to use ddd, which this seems = to=20 break). I think this is what you mean, right? > gcc -gdwarf hello.c > ~/bin/gdb ./a.out GNU gdb 5.3 (gdb) list hello.c:main No source file named hello.c. (gdb) break hello.c:6 No source file named hello.c. (gdb) vs. > gcc -g hello.c > ~/bin/gdb ./a.out (gdb) list hello.c:main 1 #include 2 3 int 4 main () 5 { 6 printf("Hello, World\n"); 7 } (gdb) break hello.c:6 Breakpoint 1 at 0x804834c: file hello.c, line 6. (gdb) Not much luck. /lib/libc.so.6 is not stripped. Are you suggesting I do so? Thanks for your help. -Ben