From 48f80ebc930e66968e36e75425dae44490040a97 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 10 Apr 2023 11:11:23 +0200 Subject: [PATCH] Better trace for vfprintf --- src/emu/x64int3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index ca500ee1..61bf3b43 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -207,6 +207,9 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr) pu64 = (uint64_t*)R_RDI; post = 3; snprintf(buff, 256, "%04d|%p: Calling %s(%p, %zu, \"%s\" (,%p))", tid, *(void**)(R_RSP), s, (void*)R_RDI, R_RSI, (tmp)?tmp:"(nil)", (void*)(R_RCX)); + } else if (strstr(s, "vfprintf")) { + tmp = (char*)(R_RSI); + snprintf(buff, 256, "%04d|%p: Calling %s(%p, \"%s\", ...", tid, *(void**)(R_RSP), s, (void*)R_RDI, (tmp)?tmp:"(nil)"); } else if (!strcmp(s, "getcwd")) { post = 2; snprintf(buff, 256, "%04d|%p: Calling %s(%p, %zu)", tid, *(void**)(R_RSP), s, (void*)R_RDI, R_RSI);