Better trace for vfprintf

This commit is contained in:
ptitSeb 2023-04-10 11:11:23 +02:00
parent e1108c5e17
commit 48f80ebc93

View File

@ -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);