about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-03 08:58:31 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-03 08:58:31 +0200
commit62baaf99b1e6cf982eda68b855f587d15189e5a3 (patch)
treefde6c4f5a1eb5350f27142dcec96d4e01cfa17fc /src
parentc03dd5951ad6d14138e61d8538072213253eb2fb (diff)
downloadbox64-62baaf99b1e6cf982eda68b855f587d15189e5a3.tar.gz
box64-62baaf99b1e6cf982eda68b855f587d15189e5a3.zip
Better trace for opendir and strlen
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64int3.c7
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));