From 8a354d443990185b968f495c032e100219977b64 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 13 Mar 2022 17:09:27 +0100 Subject: Fixed some LOG=2 improved trace --- src/emu/x64int3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index f7bb6291..2db1e6f7 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -127,10 +127,10 @@ void x64Int3(x64emu_t* emu) tmp = (char*)(R_RDI); snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", 0x%x)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", R_ESI); perr = 1; - } else if (!strcmp(s, "lseek64") || !strcmp(s, "my_lseek64")) { + } else if (!strcmp(s, "lseek64")) { snprintf(buff, 255, "%04d|%p: Calling %s(%d, %ld, %d)", tid, *(void**)(R_RSP), s, (int)R_EDI, (int64_t)R_RSI, (int)R_EDX); perr = 1; - } else if (!strcmp(s, "lseek") || !strcmp(s, "my_lseek")) { + } else if (!strcmp(s, "lseek")) { snprintf(buff, 255, "%04d|%p: Calling %s(%d, %ld, %d)", tid, *(void**)(R_RSP), s, (int)R_EDI, (int64_t)R_RSI, (int)R_EDX); perr = 1; } else if (strstr(s, "puts")==s) { @@ -148,15 +148,15 @@ void x64Int3(x64emu_t* emu) } else if (!strcmp(s, "poll")) { struct pollfd* pfd = (struct pollfd*)(R_RDI); snprintf(buff, 255, "%04d|%p: Calling %s(%p[%d/%d/%d, ...], %d, %d)", tid, *(void**)(R_RSP), s, pfd, pfd->fd, pfd->events, pfd->revents, R_ESI, R_EDX); - } else if (strstr(s, "my___printf_chk") || !strcmp(s, "__printf_chk")) { + } else if (strstr(s, "__printf_chk")) { tmp = (char*)(R_RSI); snprintf(buff, 255, "%04d|%p: Calling %s(%d, \"%s\" (,%p))", tid, *(void**)(R_RSP), s, R_EDI, (tmp)?tmp:"(nil)", (void*)(R_RDX)); - } else if (strstr(s, "my___snprintf_chk") || !strcmp(s, "__snprintf_chk")) { + } else if (strstr(s, "__snprintf_chk")) { tmp = (char*)(R_R8); pu64 = (uint64_t*)R_RDI; post = 3; snprintf(buff, 255, "%04d|%p: Calling %s(%p, %zu, %d, %zu, \"%s\" (,%p))", tid, *(void**)(R_RSP), s, (void*)R_RDI, R_RSI, R_EDX, R_RCX, (tmp)?tmp:"(nil)", (void*)(R_R9)); - } else if (strstr(s, "my_snprintf") || !strcmp(s, "snprintf")) { + } else if (!strcmp(s, "snprintf")) { tmp = (char*)(R_RDX); pu64 = (uint64_t*)R_RDI; post = 3; -- cgit 1.4.1