This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [5/5] reimplement 'set print vtbl on'
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 02 Mar 2012 14:51:03 -0700
- Subject: Re: [5/5] reimplement 'set print vtbl on'
- References: <87ipiqpr35.fsf@fleche.redhat.com> <4F4F8B52.9090301@redhat.com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> Yeah, from:
[...]
Pedro> it seems to me that with older gccs this wasn't just printing the
Pedro> pointer to the vtable, but it was also printing the vtable
Pedro> array itself, including all its elements.
Yeah. It wasn't clear to me initially but I see I was confused about
what was going on.
I could implement this instead, I suppose. I prefer what I've done,
though, I think printing the vtables in the objects is going to be ugly;
but I am open to suggestions.
I can also leave the old code lying around. I would imagine that many
of gdb's C++ features are already broken against such an old compiler
already, but I don't know for sure.
Tom