diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 08:58:31 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 08:58:31 +0200 |
| commit | 62baaf99b1e6cf982eda68b855f587d15189e5a3 (patch) | |
| tree | fde6c4f5a1eb5350f27142dcec96d4e01cfa17fc /src | |
| parent | c03dd5951ad6d14138e61d8538072213253eb2fb (diff) | |
| download | box64-62baaf99b1e6cf982eda68b855f587d15189e5a3.tar.gz box64-62baaf99b1e6cf982eda68b855f587d15189e5a3.zip | |
Better trace for opendir and strlen
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64int3.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index da3e1a70..0f7cdab3 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -104,6 +104,13 @@ void x64Int3(x64emu_t* emu) tmp = (char*)(R_RDI); snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", %d)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (int)(R_ESI)); perr = 1; + } else if(strstr(s, "opendir")==s) { + tmp = (char*)(R_RDI); + snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)"); + perr = 2; + } else if(strstr(s, "strlen")==s) { + tmp = (char*)(R_RDI); + snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)"); } else if(strstr(s, "my___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)); |