From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 576 invoked by alias); 13 Nov 2002 18:39:48 -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 562 invoked from network); 13 Nov 2002 18:39:45 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 13 Nov 2002 18:39:45 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gADINwu22591; Wed, 13 Nov 2002 13:23:58 -0500 To: Daniel Jacobowitz Cc: Elias Athanasopoulos , Michael Snyder , gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFC] faster language identification 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> <20021110170125.A29343@neutrino.particles.org> <20021110190450.GA7860@nevyn.them.org> <20021113181229.GA26819@nevyn.them.org> From: Jim Blandy Date: Wed, 13 Nov 2002 10:39:00 -0000 In-Reply-To: <20021113181229.GA26819@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00379.txt.bz2 Daniel Jacobowitz writes: > > > > 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. > > > > > > Well, it _should_ be asm. We don't have line number information for > > > the .c source. IMHO. > > > > > > (Also IMHO, the user just shouldn't do that...) > > > > Shouldn't do what? Compile assembly with debug info? Link object > > modules with a mix of debuggingness? I don't see what's wrong... > > No, compile C with assembly debug info, which that command line also > does. That's the one that'll confuse us. Ooooh. I see. Yep.