This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] handling of 'operator' in cp_find_first_component



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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]