about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-10 11:11:23 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-10 11:11:35 +0200
commit48f80ebc930e66968e36e75425dae44490040a97 (patch)
treea83d8d9e094d80b5ec7f82d4b2bac0d44d1ec291 /src
parente1108c5e17566cb666f870e545d87dc31959d7c2 (diff)
downloadbox64-48f80ebc930e66968e36e75425dae44490040a97.tar.gz
box64-48f80ebc930e66968e36e75425dae44490040a97.zip
Better trace for vfprintf
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64int3.c3
1 files changed, 3 insertions, 0 deletions
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);