Description of Figure 8
Obtain Array of Pointers to Methods
Flowchart shows one way to obtain an Array of Pointers to Methods to use to call STRS methods.
- The method getCallStructC is called to save a array of pointers to STRS methods before and after the loadModuleAt.
- The method getCallStructC obtains the symbol locations using symFindByName in VxWorks or dlsym in Linux.
- The method loadModuleAt loads a module from a file into memory in VxWorks and makes the symbol table available. Uses dlopen in Linux.
- The method structChanged tests whether any symbol location has changed.
If it has changed, the the C-language version of the symbol has been found. - The method getCallStructCpp obtains the symbol locations using the mangled symbol names in VxWorks or dlsym in Linux.
If it has been found, the C++ language version of the symbol has been found.