From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22712 invoked by alias); 11 Mar 2003 22:59:00 -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 22701 invoked from network); 11 Mar 2003 22:58:59 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by 172.16.49.205 with SMTP; 11 Mar 2003 22:58:59 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h2BMwua18823; Tue, 11 Mar 2003 14:58:56 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa] annotate blocks with C++ namespace information References: <20030311171133.GA3362@nevyn.them.org> <20030311212313.GA18680@nevyn.them.org> From: David Carlton Date: Tue, 11 Mar 2003 22:59:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00265.txt.bz2 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. David Carlton carlton@math.stanford.edu