[RFA] handling of 'operator' in cp_find_first_component
Daniel Berlin
dberlin@dberlin.org
Fri Apr 18 19:47:00 GMT 2003
On Friday, April 18, 2003, at 03:17 PM, David Carlton wrote:
> The function cp_find_first_component assumes that the string
> 'operator' as part of an operator name can only occur at the start of
> a component. Unfortunately, this isn't true: I've recently run into
> situations where there's a templated function whose name demangles to
> something like
>
> int operator<< <int>(char)
>
> In particular, the return type is part of the demangled name (I'm not
> entirely sure why, but that's a separate issue),
Templated functions always have the return type in the mangled (and
thus, demangled) names.
We've actually been through this before, they are supposed to be there.
see http://sources.redhat.com/ml/gdb/2001-06/msg00227.html
(I quote the relevant part of the ABI standard)
More information about the Gdb-patches
mailing list