This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [4/5] implement "info vtable"
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 01 Mar 2012 14:52:41 +0000
- Subject: Re: [4/5] implement "info vtable"
- References: <87mx82prmd.fsf@fleche.redhat.com>
On 02/28/2012 09:36 PM, Tom Tromey wrote:
> This one needs a doc review, and of course commentary on the naming and
> output.
>
> This adds a new command, "info vtable". This command can be used to
> inspect the virtual tables of an object.
My only gripe is that we end up with the vtable vs vtbl inconsistency (set print vtbl).
So
(gdb) apropos vtbl
and
(gdb) apropos vtable
will show different commands...
May be a good idea if the docs are augmented a bit to give an example,
and lightly explain the output.
IIUC, "info vtable POINTER" works. The tests only sees to try
"info vtable OBJ". Worth adding a test that tries through a pointer?
--
Pedro Alves