This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: pr9065 patch
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Chris Moller <cmoller at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Mar 2010 06:11:04 +0200
- Subject: Re: pr9065 patch
- References: <4B96B1C6.9050907@redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 09 Mar 2010 15:38:30 -0500
> From: Chris Moller <cmoller@redhat.com>
>
> This is the typeid thing.
>
> This patch implements typeid in gdb, letting users do things like
>
> p typeid(<expression>)
> p typeid(<expression>).name()
> p typeid(<expression>).__name
> p typeid(<expression>).__is_pointer_()
>
> and the same thing for types (i.e., p typeid(<type>).name())
Thanks. I think this needs a suitable patch to the manual as well.