mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-27 14:08:39 +01:00
Added logs for Linux_Detour
This commit is contained in:
parent
bb8cfbda10
commit
d6f29ffffa
1 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,8 @@
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include "../../dll/base.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------//
|
//------------------------------------------------------------------------------//
|
||||||
// Helper funcs
|
// Helper funcs
|
||||||
//------------------------------------------------------------------------------//
|
//------------------------------------------------------------------------------//
|
||||||
|
@ -244,7 +246,7 @@ int find_space_for_trampoline(uint8_t* func, int bytes_needed)
|
||||||
switch( *pCode )
|
switch( *pCode )
|
||||||
{
|
{
|
||||||
case CALL: case JMP: case LJMP: case SHORT_JMP:
|
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;
|
search = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -264,7 +266,7 @@ int find_space_for_trampoline(uint8_t* func, int bytes_needed)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//std::cerr << "opcode " << std::hex << (uint32_t)*pCode << " no registered" << std::endl;
|
PRINT_DEBUG("Unknown opcode %02X\n", (int)*pCode);
|
||||||
search = false;
|
search = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue