This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: FYI: A new C++ demangler
- From: "H. J. Lu" <hjl at lucon dot org>
- To: David Carlton <carlton at kealia dot com>
- Cc: binutils at sources dot redhat dot com, GDB <gdb at sources dot redhat dot com>
- Date: Thu, 10 Jul 2003 08:36:09 -0700
- Subject: Re: FYI: A new C++ demangler
- References: <20030710143557.GA25588@lucon.org> <yf265maz9i9.fsf@hawaii.kealia.com>
On Thu, Jul 10, 2003 at 08:28:30AM -0700, David Carlton wrote:
> On Thu, 10 Jul 2003 07:35:57 -0700, "H. J. Lu" <hjl@lucon.org> said:
>
> > I will put a new C++ demangler in Linux binutils, which should fix all
> > known bugs in the old demangler.
>
> Just to clarify: is the output of the new demangler exactly the same
> as the output of the old demangler in all cases where the old
> demangler is correct? Because if the new demangler does go into the
> mainline libiberty, GDB will care about the details of its output.
There is a demangler testsuite in libiberty and I added a few new
tests which are failed with the old demangler. The new demangler
passed all of them. I assume the outputs must be the same.
BTW, I am not sure when/if the new demangler will show up in mainline
libiberty. That is why I am putting it in my Linux binutils. People
can also apply it to their own gdb source to get a better demangler.
H.J.