CACAO
Macros | Functions
patcher.cpp File Reference

Go to the source code of this file.

Macros

#define PATCH_BACK_ORIGINAL_MCODE
 

Functions

void patcher_patch_code (patchref_t *pr)
 
bool patcher_is_valid_trap_instruction_at (void *pc)
 Check if the trap instruction at the given PC is valid. More...
 
bool patcher_get_putstatic (patchref_t *pr)
 
bool patcher_getfield (patchref_t *pr)
 
bool patcher_putfield (patchref_t *pr)
 
bool patcher_putfieldconst (patchref_t *pr)
 
bool patcher_aconst (patchref_t *pr)
 
bool patcher_builtin_multianewarray (patchref_t *pr)
 
bool patcher_builtin_arraycheckcast (patchref_t *pr)
 
bool patcher_invokestatic_special (patchref_t *pr)
 
bool patcher_invokevirtual (patchref_t *pr)
 
bool patcher_invokeinterface (patchref_t *pr)
 
bool patcher_checkcast_instanceof_flags (patchref_t *pr)
 
bool patcher_checkcast_interface (patchref_t *pr)
 
bool patcher_instanceof_interface (patchref_t *pr)
 
bool patcher_checkcast_class (patchref_t *pr)
 
bool patcher_instanceof_class (patchref_t *pr)
 
bool patcher_get_putfield (patchref_t *pr)
 
bool patcher_resolve_classref_to_classinfo (patchref_t *pr)
 
bool patcher_resolve_classref_to_vftbl (patchref_t *pr)
 
bool patcher_resolve_classref_to_flags (patchref_t *pr)
 

Macro Definition Documentation

#define PATCH_BACK_ORIGINAL_MCODE
Value:
do { \
} while (0)

Definition at line 50 of file patcher.cpp.

Function Documentation

bool patcher_aconst ( patchref_t pr)

Definition at line 285 of file patcher.cpp.

bool patcher_builtin_arraycheckcast ( patchref_t pr)

Definition at line 367 of file patcher.cpp.

bool patcher_builtin_multianewarray ( patchref_t pr)

Definition at line 328 of file patcher.cpp.

bool patcher_checkcast_class ( patchref_t pr)

Definition at line 660 of file patcher.cpp.

bool patcher_checkcast_instanceof_flags ( patchref_t pr)

Definition at line 532 of file patcher.cpp.

bool patcher_checkcast_interface ( patchref_t pr)

Definition at line 574 of file patcher.cpp.

bool patcher_get_putfield ( patchref_t pr)

Definition at line 726 of file patcher.cpp.

bool patcher_get_putstatic ( patchref_t pr)

Definition at line 92 of file patcher.cpp.

bool patcher_getfield ( patchref_t pr)

Definition at line 135 of file patcher.cpp.

bool patcher_instanceof_class ( patchref_t pr)

Definition at line 697 of file patcher.cpp.

bool patcher_instanceof_interface ( patchref_t pr)

Definition at line 619 of file patcher.cpp.

bool patcher_invokeinterface ( patchref_t pr)

Definition at line 489 of file patcher.cpp.

bool patcher_invokestatic_special ( patchref_t pr)

Definition at line 409 of file patcher.cpp.

bool patcher_invokevirtual ( patchref_t pr)

Definition at line 448 of file patcher.cpp.

bool patcher_is_valid_trap_instruction_at ( void pc)

Check if the trap instruction at the given PC is valid.

Parameters
pcProgram counter.
Returns
true if valid, false otherwise.

Definition at line 74 of file patcher.cpp.

void patcher_patch_code ( patchref_t pr)

Definition at line 61 of file patcher.cpp.

bool patcher_putfield ( patchref_t pr)

Definition at line 181 of file patcher.cpp.

bool patcher_putfieldconst ( patchref_t pr)

Definition at line 233 of file patcher.cpp.

bool patcher_resolve_classref_to_classinfo ( patchref_t pr)

Definition at line 731 of file patcher.cpp.

bool patcher_resolve_classref_to_flags ( patchref_t pr)

Definition at line 741 of file patcher.cpp.

bool patcher_resolve_classref_to_vftbl ( patchref_t pr)

Definition at line 736 of file patcher.cpp.