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

Pedro Alves
2012-03-01T20:18:05Z

On 03/01/2012 05:36 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> My only gripe is that we end up with the vtable vs vtbl inconsistency
> Pedro> (set print vtbl).
>
> Yeah. I was thinking of renaming 'set print vtbl' (keeping the old name
> as an alias of course). WDYT? I think "vtable" is both clearer and
> more commonly used.

I have no problem with vtbl, but if you think vtable is clearer, fine with me.

> Pedro> May be a good idea if the docs are augmented a bit to give an example,
> Pedro> and lightly explain the output.
>
> Ok.
>
> Pedro> IIUC, "info vtable POINTER" works. The tests only sees to try
> Pedro> "info vtable OBJ". Worth adding a test that tries through a pointer?
>
> Will do.

Thanks. While at it, it might be worth it to add a test that
tries "info vtable" (no arg), "info vtable foo" with a foo object that doesn't
have a vtable, and perhaps also "info vtable some_scalar".

--
Pedro Alves