#include <sys/types.h>
#include <mach/error.h>
Go to the source code of this file.
Defines | |
| #define | err_cannot_override (err_local|1) |
| Returned if the function to be overrided begins with a 'mfctr' instruction. | |
Functions | |
| mach_error_t | mach_override (char *originalFunctionSymbolName, const char *originalFunctionLibraryNameHint, const void *overrideFunctionAddress, void **originalFunctionReentryIsland) |
| Dynamically overrides the function implementation referenced by originalFunctionSymbolName with the implentation pointed to by overrideFunctionAddress. | |
|
|
Returned if the function to be overrided begins with a 'mfctr' instruction.
Definition at line 57 of file mach_override.h. Referenced by mach_override(). |
|
||||||||||||||||||||
|
Dynamically overrides the function implementation referenced by originalFunctionSymbolName with the implentation pointed to by overrideFunctionAddress. Optionally returns a pointer to a "reentry island" which, if jumped to, will resume the original implementation.
Definition at line 92 of file mach_override.c. References allocateBranchIsland(), err_cannot_override, freeBranchIsland(), kAllocateHigh, kAllocateNormal, and setBranchIslandTarget(). Referenced by main(). |
1.3.4