From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11949 invoked by alias); 17 Dec 2003 16:17:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11886 invoked from network); 17 Dec 2003 16:17:10 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 17 Dec 2003 16:17:10 -0000 Received: from fleche.redhat.com (tf0208.peakpeak.com [204.144.239.208]) by gash2.peakpeak.com (8.9.3/8.9.3.1) with ESMTP id JAA07058; Wed, 17 Dec 2003 09:17:02 -0700 Received: by fleche.redhat.com (Postfix, from userid 1000) id 079F44F8249; Wed, 17 Dec 2003 09:05:39 -0700 (MST) To: Ian Lance Taylor Cc: mec.gnu@mindspring.com (Michael Elizabeth Chastain), gdb@sources.redhat.com Subject: Re: demangler, java, clinit, $E References: <20031217002907.3CA854B375@berman.michael-chastain.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Can I have an IMPULSE ITEM instead? Date: Wed, 17 Dec 2003 16:17:00 -0000 In-Reply-To: Message-ID: <874qvzmnu4.fsf@fleche.redhat.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00241.txt.bz2 >>>>> "Ian" == Ian Lance Taylor writes: Ian> For some reason the Java mangler emits a '$' character after a member Ian> name, if the name happens to be a C++ keyword with optional trailing Ian> '$' characters. I don't know why it bothers to do this. It's a weird quoting scheme to achieve some kind of CNI compatibility. When generating a C++ header from a .class file, we might see a method or field with the same name as a C++ keyword. So we add a "$". But then this is ambiguous, so if we see keyword + sequence of "$", we add one more "$". This scheme doesn't work for static fields or methods... some parts of CNI are still half-baked. Tom