[PATCH, c++ testsuite] Fix a few failures in gdb.cp/virtfunc.exp

Luis Machado lgustavo@codesourcery.com
Mon Jun 3 12:31:00 GMT 2013


Hi,

I noticed a few tests failing for ppc64. Those are related to printing 
virtual tables for objects.

Some of these failures are related to how the output from that command 
comes out in a target that uses function descriptors.

This is the regular non-function-descriptor output:

info vtbl a
vtable for 'A' @ 0x401858 (subobject @ 0x603220):
[0]: 0x400d9a <A::f()>

vtable for 'V' @ 0x401880 (subobject @ 0x603230):
[0]: 0x400ea2 <VB::vvb()>
[1]: 0x400e16 <V::vv()>

And the output for a target that does function descriptors:

info vtbl a
vtable for 'A' @ 0x10013518 (subobject @ 0x10013e20):
[0]: @0x10013b88: 0x10001c6c <A::f()>

vtable for 'V' @ 0x10013540 (subobject @ 0x10013e30):
[0]: @0x10013cd8: 0x10001f74 <VB::vvb()>
[1]: @0x10013c48: 0x10001df4 <V::vv()>

As you can see, there are additional fields for each virtual function 
pointer, and that is the address of the function descriptor.

The attached patch takes care of this.

OK?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtbl_fd.diff
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20130603/1d835dbc/attachment.bin>


More information about the Gdb-patches mailing list