This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch] Tweak output of -var-info-path-expression
- From: Tom Tromey <tromey at redhat dot com>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: "'gdb-patches\ at sourceware dot org'" <gdb-patches at sourceware dot org>
- Date: Fri, 10 Sep 2010 16:04:56 -0600
- Subject: Re: [RFC][patch] Tweak output of -var-info-path-expression
- References: <F7CE05678329534C957159168FA70DEC5718DBD843@EUSAACMS0703.eamcs.ericsson.se>
>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
Marc> Bug 11912 (http://sourceware.org/bugzilla/show_bug.cgi?id=11912)
Marc> is causing a syntax error when casting to a class in
Marc> certain cases. (see small session below for example)
Marc> I'm suggesting to add the workaround to the output of
Marc> -var-info-path-expression when it casts.
Marc> It would be nicer to fix the parser problem but that
Marc> seems much more complicated (at least for me).
I hate to work around other bugs, but in this case it seems practical.
Marc> I've attached a patch in hopes of comments but I have to
Marc> admit that the implications of this change are not clear to me.
Marc> Thanks for any feedback
I think a regression test in the test suite would be valuable.
Marc> 2010-09-08 Marc Khouzam <marc.khouzam@ericsson.com>
Marc> * varobj.c (cplus_describe_child): Add `class'
Marc> keyword to avoid confusion with constructor name.
I think the patch itself is ok, but I would like to wait a little while
to see if other maintainers, particularly Volodya, have any objections.
Tom