diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-10 11:11:23 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-10 11:11:35 +0200 |
| commit | 48f80ebc930e66968e36e75425dae44490040a97 (patch) | |
| tree | a83d8d9e094d80b5ec7f82d4b2bac0d44d1ec291 /src | |
| parent | e1108c5e17566cb666f870e545d87dc31959d7c2 (diff) | |
| download | box64-48f80ebc930e66968e36e75425dae44490040a97.tar.gz box64-48f80ebc930e66968e36e75425dae44490040a97.zip | |
Better trace for vfprintf
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64int3.c | 3 |
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); |