This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [4/5] implement "info vtable"
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Pedro Alves <palves at redhat dot com>, gdb-patches at sourceware dot org
- Date: Fri, 20 Jul 2012 10:32:48 +0200
- Subject: Re: [4/5] implement "info vtable"
- References: <87mx82prmd.fsf@fleche.redhat.com> <4F4F8D39.60507@redhat.com> <874ntpdg5s.fsf@fleche.redhat.com> <m24np4jdru.fsf@igel.home> <878vefznvz.fsf@fleche.redhat.com>
I'm still seeing these failures:
info vtbl e.
vtable for 'E' @ 0x100138e8 (subobject @ 0x100145b0):.
[0]: @0x100142c0: 0x10001b90 <E::f()>.
[1]: @0x10014308: 0x10001c0c <E::vg()>.
[2]: @0x10014368: 0x10001ce8 <E::vv()>.
.
vtable for 'D' @ 0x10013918 (subobject @ 0x100145c0):.
[0]: @0x100142f0: 0x10001c04 <._ZThn16_N1E2vgEv>.
[1]: @0x10014398: 0x10001d8c <D::vd()>.
.
vtable for 'V' @ 0x10013960 (subobject @ 0x100145e0):.
[0]: @0x100143c8: 0x10001e14 <VB::vvb()>.
[1]: @0x10014350: 0x10001cd8 <._ZTv0_n32_N1E2vvEv>.
(gdb) FAIL: gdb.cp/virtfunc.exp: info vtbl e
info vtbl pEe.
vtable for 'E' @ 0x100138e8 (subobject @ 0x100145b0):.
[0]: @0x100142c0: 0x10001b90 <E::f()>.
[1]: @0x10014308: 0x10001c0c <E::vg()>.
[2]: @0x10014368: 0x10001ce8 <E::vv()>.
.
vtable for 'D' @ 0x10013918 (subobject @ 0x100145c0):.
[0]: @0x100142f0: 0x10001c04 <._ZThn16_N1E2vgEv>.
[1]: @0x10014398: 0x10001d8c <D::vd()>.
.
vtable for 'V' @ 0x10013960 (subobject @ 0x100145e0):.
[0]: @0x100143c8: 0x10001e14 <VB::vvb()>.
[1]: @0x10014350: 0x10001cd8 <._ZTv0_n32_N1E2vvEv>.
(gdb) FAIL: gdb.cp/virtfunc.exp: info vtbl pEe
step.
0x0000000010001c04 in ._ZThn16_N1E2vgEv () at ../../../gdb/gdb/testsuite/gdb.cp/virtfunc.cc:203.
203 int D::vg() {return 100+d;}.
(gdb) FAIL: gdb.cp/virtfunc.exp: step through thunk into E::vg
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."