From ab0059eeee2ca34b884fed92dc311ea3b393c3de Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 3 Apr 2021 09:39:35 +0200 Subject: Better trace for strcmp --- src/emu/x64int3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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)); -- cgit 1.4.1