This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Patch to C++ nested class printing
- To: Jim Kingdon <kingdon at redhat dot com>
- Subject: Re: Patch to C++ nested class printing
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 14 Feb 2000 21:31:35 +1100
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <199911240947.BAA18697@yorick.cygnus.com> <bvh3tc2zw.fsf@rtl.cygnus.com>
Jim Kingdon wrote:
>
> > * c-typeprint.c (c_type_print_base): Only strip the initial
> > Class:: qualification.
>
> Unless I misread the code, JimB took care of this one in a somewhat
> different way. His change also seems to have been omitted from the
> ChangeLog (due to oversight, I guess). I've checked in a ChangeLog
> entry (hope that is the right way to recover....).
Yes looks that way. Thanks for stopping me trying to merge the other
patch - it could have been messy.
As an asside, I've also received a nomination for a C++ maintainer.
I'll wait until all the logistic hurdles have been overcome before
announcing the details. However, given this persons credentials, this
is a very positive piece of news.
>
> date: 2000/02/04 19:48:52; author: jimb; state: Exp; lines: +133 -10
> * c-typeprint.c (remove_qualifiers): New function.
> (c_type_print_base): Use it to remove qualifiers from C++
> qualified names, not strrchr.
>
> * c-typeprint.c (c_type_print_base): Recognize type conversion
> operators by calling is_type_conversion_operator.
> (is_type_conversion_operator): New function.
Andrew