From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18223 invoked by alias); 15 Dec 2003 23:33:50 -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 18192 invoked from network); 15 Dec 2003 23:33:48 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 15 Dec 2003 23:33:48 -0000 Received: (qmail 24109 invoked by uid 10); 15 Dec 2003 23:33:46 -0000 Received: (qmail 26569 invoked by uid 500); 15 Dec 2003 23:33:39 -0000 From: Ian Lance Taylor To: David Carlton Cc: gdb Subject: Re: new demangler References: <20031215225452.GA23169@nevyn.them.org> Date: Mon, 15 Dec 2003 23:33:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00226.txt.bz2 David Carlton writes: > On 15 Dec 2003 18:23:22 -0500, Ian Lance Taylor said: > > > Here's the patch. > > Thanks! Now, when I demangle that name with just DMGL_ANSI, I get > "C::CClass::operator=". Am I going crazy, or was there once '()' > stuck on the end of that? Hmmm, I doubt there was ever '()' at the end. I would expect to see `(C::CClass const&)' at the end. Note that the old V3 demangler ignored DMGL_PARAMS--it effectively assumed that DMGL_PARAMS was always passed, so your code used to always get the parameter types. Now you have a choice. It is slightly more efficient to demangle strings without passing DMGL_PARAMS, but of course then you don't get any information on parameter types. I don't know which you actually want. If you want the parameter types, you need to pass DMGL_PARAMS. Ian