This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix demangler in symbol versioning
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>, hjl at lucon dot org, <binutils at sources dot redhat dot com>
- Date: 04 Dec 2003 20:58:59 -0500
- Subject: Re: PATCH: Fix demangler in symbol versioning
- References: <Pine.BSF.4.44.0312042042580.19656-100000@dair.pair.com>
Hans-Peter Nilsson <hp@bitrange.com> writes:
> On Thu, 4 Dec 2003, Michael Elizabeth Chastain wrote:
> > % echo i | /berman/migchain/install/target/native/binutils-2.14/bin/c++filt
> > i
> >
> > % /berman/migchain/install/target/native/binutils-2.14/bin/c++filt i
> > int
> >
> > A quick look at the code reveals:
> >
> > /* For command line args, also try to demangle type encodings. */
> > result = cplus_demangle (mangled_name, flags | DMGL_TYPES);
> >
> > Too clever by half.
>
> Heh. My pet peeve: demangling "data" to "double"!
That one, at least, is fixed. The new demangler insists on demangling
the entire string, or it fails.
Ian