about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-03 09:39:35 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-03 09:39:35 +0200
commitab0059eeee2ca34b884fed92dc311ea3b393c3de (patch)
tree54d74aa8ddf00d21f33e01e8610a48aee49446c0
parent19a7d2139a885f592bb5da66e663414429dc48c5 (diff)
downloadbox64-ab0059eeee2ca34b884fed92dc311ea3b393c3de.tar.gz
box64-ab0059eeee2ca34b884fed92dc311ea3b393c3de.zip
Better trace for strcmp
-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 0f7cdab3..8b967ff9 100755
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -111,6 +111,9 @@ void x64Int3(x64emu_t* emu)
                 } 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, "strcmp")==s) {
+                    tmp = (char*)(R_RDI);
+                    snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", \"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (char*)R_RSI);
                 } 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));