analysis of libiberty/cp-demangle.c for libsupc++/__cxa_demangle
Mark Mitchell
mark@codesourcery.com
Tue Feb 24 01:34:00 GMT 2004
Ian Lance Taylor wrote:
> Benjamin Kosnik <bkoz@redhat.com> writes:
> So by my reading, when given something like _X11TransParseAddress
> which is not a valid mangled name, it is correct for __cxa_demangle()
> to return NULL with status set to -2.
>
> What other reading could there be?
The ABI implies that you can feed an 'extern "C"' name to __cxa_demangle.
For example, it says that "i" should be demangled as "i".
It's hard (for me) to see how to get that without considering "i" a
valid mangled name.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
More information about the Libstdc++
mailing list