This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: feature idea: type-only convenience variables
- From: Tom Tromey <tromey at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Project Archer <archer at sourceware dot org>
- Date: Fri, 03 Jul 2009 10:24:16 -0600
- Subject: Re: feature idea: type-only convenience variables
- References: <20090702230516.C6985404FD@magilla.sf.frob.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Roland" == Roland McGrath <roland@redhat.com> writes:
Roland> (gdb) p typeof(foo)
Eventually we'll implement whatever C++0X does here, plus maybe the
gcc typeof extension. I think that is needed for casts.
Roland> (gdb) b template.hh:27 if arg==3 && typeof(*this)==typeof($92)
If you have an immediate need you could make something work using
python convenience functions.
Tom