diff --git a/dependencies/symbol-processor/src b/dependencies/symbol-processor/src index 308a36b4ba..c803572e24 160000 --- a/dependencies/symbol-processor/src +++ b/dependencies/symbol-processor/src @@ -1 +1 @@ -Subproject commit 308a36b4ba7f4b1b9917967f66df07860e7d0c56 +Subproject commit c803572e248998cc9d197f84661fea56bebf7346 diff --git a/libreborn/include/libreborn/patch.h b/libreborn/include/libreborn/patch.h index eda6175528..0227f848ea 100644 --- a/libreborn/include/libreborn/patch.h +++ b/libreborn/include/libreborn/patch.h @@ -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); template 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)) { - 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); // Patch VTable Entry -// This does not affect subclasses. +// IMPORTANT NOTE: This does not affect subclasses. template 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) { WARN("Use overwrite_calls() Instead!"); }