Changes between Version 7 and Version 8 of Old/Documentation/OTG/DebugNote


Ignore:
Timestamp:
Feb 17, 2006, 10:36:46 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/OTG/DebugNote

    v7 v8  
    215215a structure containing
    216216
    217    * the function address for non-virtual functions
    218    * the vtable index for virtual functions
    219    * the this pointer offset
     217 * the function address for non-virtual functions
     218 * the vtable index for virtual functions
     219 * the this pointer offset
    220220
    221221The representation of the structure is implementation specific,
     
    224224
    225225All this is needed to calculate
    226     *   the actual entry point address
    227     *   and the effective this pointer
     226  * the actual entry point address
     227  * and the effective this pointer
    228228when the ptr-to-member-function is finally used in a call.
    229229In cases like multiple inherited base classes with virtual
     
    259259For example you want to call virtual finction void A::F()
    260260By C++ rules you mas provide 2 pointers:
     261{{{
    261262 A* p  - pointer to class instance
    262263 void (A::*f)()  - pointer to function
    263 
    264  Then you calculate pointer f = &A::F;
    265 
     264}}}
     265 Then you calculate pointer
     266{{{
     267 f = &A::F;
     268}}}
    266269User function for Pthread
    267270{{{