diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 09:39:35 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-03 09:39:35 +0200 |
| commit | ab0059eeee2ca34b884fed92dc311ea3b393c3de (patch) | |
| tree | 54d74aa8ddf00d21f33e01e8610a48aee49446c0 | |
| parent | 19a7d2139a885f592bb5da66e663414429dc48c5 (diff) | |
| download | box64-ab0059eeee2ca34b884fed92dc311ea3b393c3de.tar.gz box64-ab0059eeee2ca34b884fed92dc311ea3b393c3de.zip | |
Better trace for strcmp
| -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 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)); |