From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7277 invoked by alias); 4 Dec 2005 23:07:45 -0000 Received: (qmail 7269 invoked by uid 22791); 4 Dec 2005 23:07:44 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sun, 04 Dec 2005 23:07:43 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ej2xH-0006oT-Q3; Sun, 04 Dec 2005 18:07:39 -0500 Date: Mon, 05 Dec 2005 19:57:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: jimb@red-bean.com, gdb-patches@sourceware.org Subject: Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info Message-ID: <20051204230739.GB26122@nevyn.them.org> Mail-Followup-To: Mark Kettenis , jimb@red-bean.com, gdb-patches@sourceware.org References: <200512041859.jB4IxrVO001319@elgar.sibelius.xs4all.nl> <8f2776cb0512041316w14c80cfdka34f84fcbd3c6cdb@mail.gmail.com> <20051204212244.GA24021@nevyn.them.org> <8f2776cb0512041400x257a1889u8fb53eb23e62ce49@mail.gmail.com> <200512042230.jB4MUmMw002961@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512042230.jB4MUmMw002961@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00099.txt.bz2 On Sun, Dec 04, 2005 at 11:30:48PM +0100, Mark Kettenis wrote: > > Date: Sun, 4 Dec 2005 14:00:21 -0800 > > From: Jim Blandy > > > > The central issue here is that the compiler is emitting incorrect > > debug info. The GCC manual says of -g1: > > > > Level 1 produces minimal information, enough for making backtraces > > in parts of the program that you don't plan to debug. This > > includes descriptions of functions and external variables, but no > > information about local variables and no line numbers. > > > > Nothing there about reducing all return types to 'void'. > > But fixing that would probably require that GCC dumps the complete > type info, which would reduce the usefulness of -g1. And that doesn't > change the fact that GCC probably has been doing this for quite some > time now. Except, no one seems to _use_ .debug_info with -g1... Why do you want information about functions, if it's not going to tell you anything that wasn't in the symbol table? -- Daniel Jacobowitz CodeSourcery, LLC