From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15095 invoked by alias); 10 Nov 2002 13:43:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15081 invoked from network); 10 Nov 2002 13:43:29 -0000 Received: from unknown (HELO mailsrv.otenet.gr) (195.170.0.5) by sources.redhat.com with SMTP; 10 Nov 2002 13:43:29 -0000 Received: from neutrino.particles.org (athe535-e060.otenet.gr [62.103.181.60]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAADfJXq027909; Sun, 10 Nov 2002 15:41:20 +0200 (EET) Received: (from anteater@localhost) by neutrino.particles.org (8.11.6/8.11.6) id gAAF1PT29552; Sun, 10 Nov 2002 17:01:25 +0200 Date: Sun, 10 Nov 2002 05:43:00 -0000 From: Elias Athanasopoulos To: Michael Snyder Cc: gdb-patches@sources.redhat.com, Daniel Jacobowitz Subject: Re: [PATCH/RFC] faster language identification Message-ID: <20021110170125.A29343@neutrino.particles.org> References: <20021107224622.D1136@neutrino.particles.org> <20021107193409.GA25879@nevyn.them.org> <20021107230321.F1136@neutrino.particles.org> <20021107194838.GA26711@nevyn.them.org> <20021107231840.G1136@neutrino.particles.org> <3DCAD353.E5C2A968@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3DCAD353.E5C2A968@redhat.com>; from msnyder@redhat.com on Thu, Nov 07, 2002 at 12:55:47PM -0800 X-SW-Source: 2002-11/txt/msg00288.txt.bz2 Hi Michael, On Thu, Nov 07, 2002 at 12:55:47PM -0800, Michael Snyder wrote: > Elias Athanasopoulos wrote: > > On Thu, Nov 07, 2002 at 02:48:38PM -0500, Daniel Jacobowitz wrote: > > > No, the patch converts the psymtab to a symtab and uses the language in > > > the symtab. That's what I want you NOT to do. psymtab_to_symtab is > > > expensive! > Perhaps the patch could be added to psymtab_to_symtab, > so that it would not try to get the language until > the symbols were going to be read anyway? Yes, that may work, although I don't know exactly where gdb *really* needs to set the language. I was thinking of what Daniel proposed; a psymtab_language() function. But, even in the DWARF case, consider this: % gcc -Wa,-gdwarf2 bar.s foo.c -o foo Now, the language should be set to 'asm'? This is what you'll get if you try to parse the .debug_info section. Currently, gdb in the above case sets it to 'c'. Also, there is the case that you enable DWARF in both as and gcc, but I think this shouldn't be allowed by gcc. Elias