virtual method structure

Fabian Cenedese Cenedese@indel.ch
Fri Dec 11 11:57:00 GMT 2009


Hello

This question may not be about gcc per se, but closely. I'm using gcc
with stabs info and am trying to make heads about the information of
(virtual) methods. There's a structure with the needed info but I couldn't
find on the net a description. Everywhere it just says:

<< In boilerplate $vtbl_ptr_type, what are the fields delta, index,
pfn and delta2 used for? >>
 
So is there somewhere a description of these fields? I would like to
get the address of a virtual method of an object (so pObj->vptr->index
->method or something like that).

Thanks

bye  Fabi



More information about the Gcc-help mailing list