diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64syscall.c | 2 | ||||
| -rwxr-xr-x | src/emu/x64tls.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c index 347def6e..242184b3 100755 --- a/src/emu/x64syscall.c +++ b/src/emu/x64syscall.c @@ -752,7 +752,7 @@ uintptr_t EXPORT my_syscall(x64emu_t *emu) { static uint32_t warned = 0; uint32_t s = R_EDI; - printf_dump(LOG_DEBUG, "%p: Calling libc syscall 0x%02X (%d) %p %p %p %p %p\n", (void*)R_RIP, s, s, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); + printf_dump(LOG_DEBUG, "%04d| %p: Calling libc syscall 0x%02X (%d) %p %p %p %p %p\n", GetTID(), (void*)R_RIP, s, s, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); // check wrapper first int cnt = sizeof(syscallwrap) / sizeof(scwrap_t); for (int i=0; i<cnt; i++) { diff --git a/src/emu/x64tls.c b/src/emu/x64tls.c index a68ba30b..4673b4a3 100755 --- a/src/emu/x64tls.c +++ b/src/emu/x64tls.c @@ -135,6 +135,8 @@ uint32_t my_modify_ldt(x64emu_t* emu, int op, thread_area_t* td, int size) int my_arch_prctl(x64emu_t *emu, int code, void* addr) { + //printf_log(LOG_INFO, "%04d| arch_prctl(0x%x, %p) (RSP=%p)\n", GetTID(), code, addr,(void*)R_RSP); + #define ARCH_SET_GS 0x1001 #define ARCH_SET_FS 0x1002 #define ARCH_GET_FS 0x1003 |