From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24251 invoked by alias); 11 Mar 2003 23:01:50 -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 24244 invoked from network); 11 Mar 2003 23:01:50 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 11 Mar 2003 23:01:50 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18sue6-0003bl-00; Tue, 11 Mar 2003 19:03:02 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18sskg-0005Un-00; Tue, 11 Mar 2003 18:01:42 -0500 Date: Tue, 11 Mar 2003 23:01:00 -0000 From: Daniel Jacobowitz To: David Carlton Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa] annotate blocks with C++ namespace information Message-ID: <20030311230141.GA21110@nevyn.them.org> Mail-Followup-To: David Carlton , gdb-patches@sources.redhat.com References: <20030311171133.GA3362@nevyn.them.org> <20030311212313.GA18680@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00266.txt.bz2 On Tue, Mar 11, 2003 at 02:58:56PM -0800, David Carlton wrote: > On 11 Mar 2003 14:43:19 -0800, David Carlton said: > > On Tue, 11 Mar 2003 16:23:13 -0500, Daniel Jacobowitz said: > >> On Tue, Mar 11, 2003 at 01:14:16PM -0800, David Carlton wrote: > > >>> Do any demanglers put in spaces after 'operator'? I hope not... > > >> I thought one of them did, but I might have been mistaken. > > > You could easily be right: I haven't done a lot of GCC v2 checking. > > I'll look into that, and, if so, add a guard for a possible extra > > space in cp_find_first_component. > > Yeah, I'll add it: with gcc 2.95.3 -gdwarf-2, I get: > > .ascii "operator ->\0" # DW_AT_name > .byte 0x1 # DW_AT_decl_file > .byte 0x3 # DW_AT_decl_line > .ascii "__rf__1C\0" # DW_AT_MIPS_linkage_name > > and while the demangler doesn't put in a space when demangling > __rf__1C, there's still that space in the DW_AT_name. And while I > think that most internal uses of operator names within GDB will come > via the demangler, it's probably not wise to bet that they all do. Good. Especially since, going forward, more of them will not come via the demangler. I'm just waiting for better namespace handling to settle in before I get back to that. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer