This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4/5] implement "info vtable"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]