From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26118 invoked by alias); 31 Mar 2006 14:01:02 -0000 Received: (qmail 26099 invoked by uid 22791); 31 Mar 2006 14:00:57 -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; Fri, 31 Mar 2006 14:00:56 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FPKBH-0007D6-1M; Fri, 31 Mar 2006 09:00:51 -0500 Date: Fri, 31 Mar 2006 14:20:00 -0000 From: Daniel Jacobowitz To: Fabian Cenedese Cc: gdb@sourceware.org Subject: Re: stabs difference gcc 2.95.3 -> 3.4.3 Message-ID: <20060331140050.GB27522@nevyn.them.org> Mail-Followup-To: Fabian Cenedese , gdb@sourceware.org References: <5.2.0.9.1.20060330162459.01fbe008@NT_SERVER> <5.2.0.9.1.20060330083638.01f6da00@NT_SERVER> <5.2.0.9.1.20060330083638.01f6da00@NT_SERVER> <5.2.0.9.1.20060330162459.01fbe008@NT_SERVER> <5.2.0.9.1.20060331154403.01f90670@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20060331154403.01f90670@NT_SERVER> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00236.txt.bz2 On Fri, Mar 31, 2006 at 03:54:28PM +0200, Fabian Cenedese wrote: > At 10:20 30.03.2006 -0500, Daniel Jacobowitz wrote: > >On Thu, Mar 30, 2006 at 04:33:11PM +0200, Fabian Cenedese wrote: > >> Well, as the currently used compiler 2.95.3 is even older and I supposed > >> that the stabs format should be compatible I didn't especially try the > >> newest versions but I may now. > > > >The C++ front end has gotten much more sophisticated. Namespace > >debugging works in DWARF-2, but fails badly in stabs. > > > >> The -g is given to gcc, I don't know if that gets passed on to as. But so > >> was the setup with the older compiler as well, where it worked. > > > >GCC 2.95.x predates assembler -g support; GCC 3.4.x doesn't. > > Can I somehow prevent gcc from relaying it to as? Something like > -Wa,(no, don't do -g)? I didn't find a matching parameter on > > http://sourceware.org/binutils/docs-2.16/as/Invoking.html#Invoking You're compiling in two steps already; how about not passing -g the second time? > But then again it isn't mentioned either that as would take -g. It's translated to --gdwarf-2 or --gstabs. -- Daniel Jacobowitz CodeSourcery