CACAO
|
Base class for all (non-legacy) patcher. More...
Public Member Functions | |
PatcherBase () | |
PatcherBase (uintptr_t mpc) | |
virtual void | set_mcode (uint32_t mcode) |
virtual uintptr_t | get_mpc () const |
get the absolute position in code segment More... | |
virtual void | reposition (intptr_t base) |
reposition to another base More... | |
virtual const char * | get_name () const |
print patcher information More... | |
![]() | |
Patcher () | |
virtual | ~Patcher () |
bool | patch () |
This a wrapper to set the done flag. More... | |
virtual void | emit ()=0 |
Generates the code for the patcher traps. More... | |
bool | is_patched () const |
Check already patched. More... | |
virtual bool | check_is_patched () const =0 |
Check if the patcher is already patched. More... | |
virtual OStream & | print (OStream &OS) const |
print patcher information More... | |
Private Attributes | |
uint32_t | mcode |
uintptr_t | mpc |
Base class for all (non-legacy) patcher.
Definition at line 168 of file PatcherNew.hpp.
|
inline |
Definition at line 173 of file PatcherNew.hpp.
|
inlineexplicit |
Definition at line 174 of file PatcherNew.hpp.
|
inlinevirtual |
get the absolute position in code segment
Implements cacao::Patcher.
Definition at line 184 of file PatcherNew.hpp.
|
inlinevirtual |
print patcher information
Reimplemented from cacao::Patcher.
Reimplemented in cacao::InitializeClassPatcher.
Definition at line 190 of file PatcherNew.hpp.
|
inlinevirtual |
reposition to another base
Implements cacao::Patcher.
Definition at line 187 of file PatcherNew.hpp.
|
inlinevirtual |
Definition at line 176 of file PatcherNew.hpp.
|
private |
Definition at line 170 of file PatcherNew.hpp.
|
private |
Definition at line 171 of file PatcherNew.hpp.