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

Andreas Schwab
2012-07-20T08:33:07Z

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."