From d6f29ffffa913540cadfae072dd98c27e8e22b69 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Tue, 3 Sep 2019 10:29:49 +0200 Subject: [PATCH] Added logs for Linux_Detour --- overlay_experimental/linux/Linux_Detour.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/overlay_experimental/linux/Linux_Detour.cpp b/overlay_experimental/linux/Linux_Detour.cpp index 8fd8f56..52d7128 100644 --- a/overlay_experimental/linux/Linux_Detour.cpp +++ b/overlay_experimental/linux/Linux_Detour.cpp @@ -10,6 +10,8 @@ #include #include +#include "../../dll/base.h" + //------------------------------------------------------------------------------// // Helper funcs //------------------------------------------------------------------------------// @@ -244,7 +246,7 @@ int find_space_for_trampoline(uint8_t* func, int bytes_needed) switch( *pCode ) { case CALL: case JMP: case LJMP: case SHORT_JMP: - //std::cerr << "CALL and JMP are not supported for trampolines." << std::endl; + PRINT_DEBUG("JMP or CALL is forbidden for trampolines.\n"); search = false; break; @@ -264,7 +266,7 @@ int find_space_for_trampoline(uint8_t* func, int bytes_needed) break; default: - //std::cerr << "opcode " << std::hex << (uint32_t)*pCode << " no registered" << std::endl; + PRINT_DEBUG("Unknown opcode %02X\n", (int)*pCode); search = false; } }