Handling of c++ function members

Joost van der Sluis joost@cnoc.nl
Fri Sep 30 15:53:00 GMT 2011


On Fri, 2011-09-30 at 10:42 -0400, Daniel Jacobowitz wrote:
> On Tue, Sep 27, 2011 at 10:59 AM, Joost van der Sluis <joost@cnoc.nl> wrote:
> >> What I understood is, that DW_AT_vtable_elem_location should contain a
> >> Dwarf-block that calculates the location of a pointer in which the
> >> location of the function member is stored.
> 
> Your final conclusion is right - I thought the workaround was
> contained to the dwarf reader, but maybe not.

Yes, I've found it.

> Are you actually passing through gnu-v2-abi.c?  Everythong ought to be
> on the v3 abi unless this is another FPC quirk...

Well, I've used the virtual-function example for c++ from wikipedia,
compiled it  (gcc 4.6.1) on Fedora 15 and loaded it into gdb. Stepping
though gdb it indeed passed gnu-v2-abi.c. So fpc wasn't involved at all.

Regards,

Joost.



More information about the Gdb mailing list