From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16282 invoked by alias); 27 Feb 2003 23:57:52 -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 16275 invoked from network); 27 Feb 2003 23:57:50 -0000 Received: from unknown (HELO home.wuertele.com) (209.209.100.27) by 172.16.49.205 with SMTP; 27 Feb 2003 23:57:50 -0000 Received: (qmail 4054 invoked by uid 500); 27 Feb 2003 23:37:45 -0000 To: gdb@sources.redhat.com Subject: Re: gdb 5.3 doesn't find line numbers From: David Wuertele Date: Thu, 27 Feb 2003 23:57:00 -0000 In-Reply-To: <20030227233345.GA18807@nevyn.them.org> (Daniel Jacobowitz's message of "Thu, 27 Feb 2003 18:33:45 -0500") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i686-pc-linux-gnu) References: <200302261651.04300.cjb@cs.utexas.edu> <20030227233345.GA18807@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00598.txt.bz2 Me> (gdb) b hello.c:26 Me> No line 26 in file "hello.c". Daniel> What does "info source" say? (gdb) info source Current source file is hello.c Compilation directory is /root Located in /root/hello.c Contains 31 lines. Source language is c. Compiled with DWARF 2 debugging format. Does not include preprocessor macro info. (gdb) d'oh! OK, looks like I used the wrong debug flags during compile. D'oh again. Thanks, Dave