This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: C++filt grief.
- From: "Dave Korn" <dk at artimi dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Mon, 18 Oct 2004 16:05:59 +0100
- Subject: RE: C++filt grief.
> -----Original Message-----
> From: binutils-owner On Behalf Of Dave Korn
> Sent: 18 October 2004 15:40
> Anyone out there any good at hand-demangling? C++filt
> thinks my symbol
> isn't right:
>
> dk@mace /artimi/firmware> c++filt --format=gnu
> __ZNSt8ios_base4InitD1Ev
> __ZNSt8ios_base4InitD1Ev
> dk@mace /artimi/firmware> c++filt --format=gnu-v3
> __ZNSt8ios_base4InitD1Ev
> __ZNSt8ios_base4InitD1Ev
>
> I'm using these versions, which I think ought to be compatible.
>
> GNU c++filt 2.15.91 20040725
> gcc version 3.3.3 (cygwin special)
>
> Does anyone know off the top of their heads if the symbol
> is wrong or c++filt is wrong?
Ah. Superfluous underscore at the start of the symbol. Either manually
removing it or using --strip-underscores works. Sorry for the noise.
Although come to think of it, shouldn't c++filt be a bit smarter about
this situation? If you compile something with gcc and dump the symbols with
nm, shouldn't what you get be suitable for feeding into c++filt without
further processing?
cheers,
DaveK
--
Can't think of a witty .sigline today....