From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2408 invoked by alias); 27 Feb 2003 23:33:56 -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 2399 invoked from network); 27 Feb 2003 23:33:56 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 27 Feb 2003 23:33:56 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18oZQW-0004k5-00; Thu, 27 Feb 2003 19:35:05 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18oXX7-0004tf-00; Thu, 27 Feb 2003 18:33:45 -0500 Date: Thu, 27 Feb 2003 23:33:00 -0000 From: Daniel Jacobowitz To: David Wuertele Cc: gdb@sources.redhat.com Subject: Re: gdb 5.3 doesn't find line numbers Message-ID: <20030227233345.GA18807@nevyn.them.org> Mail-Followup-To: David Wuertele , gdb@sources.redhat.com References: <200302261651.04300.cjb@cs.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00597.txt.bz2 On Thu, Feb 27, 2003 at 02:41:29PM -0800, David Wuertele wrote: > I've tried all manner of experiments, including (gasp!) reading the > GDB manual, but I can't seem to get line number info compiled into my > executables. Check this out: > > # gcc -o hello -g -g3 -ggdb -ggdb3 -static hello.c > # /usr/local/bin/gdb hello > GNU gdb 5.3 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "mipsel-pc-linux-gnu"... > (gdb) list hello.c:26 > 21 { > 22 int j; > 23 > 24 for (i=0; i<2; i++) { > 25 for (j=0; j<2; j++) { > 26 printf ("Hello, World! (%d,%d)\n", i, j); > 27 } > 28 } > 29 > 30 return 0; > (gdb) b hello.c:26 > No line 26 in file "hello.c". What does "info source" say? > (gdb) > > What gives?!? GDB can list line 26 of hello.c. But it claims there > is 'No line 26 in file "hello.c".' !?! > > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer