Update Symbol Processor
This commit is contained in:
parent
71042da861
commit
b2ec2728e3
2
dependencies/symbol-processor/src
vendored
2
dependencies/symbol-processor/src
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 308a36b4ba7f4b1b9917967f66df07860e7d0c56
|
Subproject commit c803572e248998cc9d197f84661fea56bebf7346
|
@ -21,9 +21,9 @@ void overwrite_call(void *addr, __attribute__((unused)) T *target_type, typename
|
|||||||
void *overwrite_calls_manual(void *target, void *replacement, bool allow_no_callsites = false);
|
void *overwrite_calls_manual(void *target, void *replacement, bool allow_no_callsites = false);
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void overwrite_calls(T *target, typename T::overwrite_type replacement) {
|
void overwrite_calls(T *target, typename T::overwrite_type replacement) {
|
||||||
DEBUG("Overwriting Method: %s", target->name);
|
DEBUG("Overwriting Method: %s", target->name.c_str());
|
||||||
if (!target->overwrite(replacement)) {
|
if (!target->overwrite(replacement)) {
|
||||||
ERR("Unable To Overwrite Method!");
|
ERR("Unable To Overwrite Method! Use patch_vtable() Instead!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,10 +47,10 @@ void patch(void *addr, unsigned char patch[4]);
|
|||||||
void patch_address(void *addr, void *target);
|
void patch_address(void *addr, void *target);
|
||||||
|
|
||||||
// Patch VTable Entry
|
// Patch VTable Entry
|
||||||
// This does not affect subclasses.
|
// IMPORTANT NOTE: This does not affect subclasses.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void patch_vtable(const T *target, typename T::ptr_type replacement) {
|
void patch_vtable(const T *target, typename T::ptr_type replacement) {
|
||||||
DEBUG("Patching VTable: %s", target->name);
|
DEBUG("Patching VTable: %s", target->name.c_str());
|
||||||
if (target->enabled) {
|
if (target->enabled) {
|
||||||
WARN("Use overwrite_calls() Instead!");
|
WARN("Use overwrite_calls() Instead!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user