|
CACAO
|
Public Member Functions | |
| LegacyPatcher (jitdata *jd, const patchref_t &pr) | |
| patchref_t * | get () |
| return the raw resource More... | |
| virtual uintptr_t | get_mpc () const |
| get the absolute position in code segment More... | |
| virtual void | emit () |
| Generates the code for the patcher traps. More... | |
| virtual void | reposition (intptr_t base) |
| reposition to another base More... | |
| virtual bool | check_is_patched () const |
| Check if the patcher is already patched. More... | |
| virtual const char * | get_name () const |
| print patcher information More... | |
| virtual OStream & | print (OStream &OS) const |
| print patcher information More... | |
Public Member Functions inherited from cacao::Patcher | |
| Patcher () | |
| virtual | ~Patcher () |
| bool | patch () |
| This a wrapper to set the done flag. More... | |
| bool | is_patched () const |
| Check already patched. More... | |
Private Member Functions | |
| virtual bool | patch_impl () |
| Call the legacy patching function. More... | |
Private Attributes | |
| jitdata * | jd |
| patchref_t | pr |
Definition at line 115 of file PatcherNew.hpp.
|
inline |
Definition at line 134 of file PatcherNew.hpp.
|
virtual |
Check if the patcher is already patched.
This is done by comparing the machine instruction.
Implements cacao::Patcher.
Definition at line 88 of file PatcherNew.cpp.
|
virtual |
Generates the code for the patcher traps.
Implements cacao::Patcher.
Definition at line 64 of file PatcherNew.cpp.
|
inline |
return the raw resource
Definition at line 140 of file PatcherNew.hpp.
|
inlinevirtual |
get the absolute position in code segment
Implements cacao::Patcher.
Definition at line 144 of file PatcherNew.hpp.
|
virtual |
print patcher information
Reimplemented from cacao::Patcher.
Definition at line 143 of file PatcherNew.cpp.
|
inlineprivatevirtual |
Call the legacy patching function.
Implements cacao::Patcher.
Definition at line 123 of file PatcherNew.hpp.
print patcher information
Reimplemented from cacao::Patcher.
Definition at line 156 of file PatcherNew.cpp.
|
inlinevirtual |
reposition to another base
Implements cacao::Patcher.
Definition at line 148 of file PatcherNew.hpp.
|
private |
Definition at line 117 of file PatcherNew.hpp.
|
private |
Definition at line 118 of file PatcherNew.hpp.
1.8.5