diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-02 13:35:40 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-02 13:35:40 +0200 |
| commit | 4f451ff65365619f15073ebbbe5bc995a9a057c7 (patch) | |
| tree | 692b14f1ce52a20da82371599f386adb607156c8 /src | |
| parent | 7822f29140cc4323943c0416d7ee0fd8eec6819c (diff) | |
| download | box64-4f451ff65365619f15073ebbbe5bc995a9a057c7.tar.gz box64-4f451ff65365619f15073ebbbe5bc995a9a057c7.zip | |
Better trace for mmap64
Diffstat (limited to 'src')
| -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 cbfadb5c..da3e1a70 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -107,6 +107,9 @@ void x64Int3(x64emu_t* emu) } 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)); + } else if(strstr(s, "mmap64")) { + snprintf(buff, 255, "%04d|%p: Calling %s(%p, %lu, 0x%x, 0x%x, %d, %ld)", tid, *(void**)(R_RSP), s, + (void*)R_RDI, R_RSI, (int)(R_RDX), (int)R_RCX, (int)R_R8, R_R9); } else if(!strcmp(s, "sscanf")) { tmp = (char*)(R_RSI); snprintf(buff, 255, "%04d|%p: Calling %s(%p, \"%s\" (,%p))", tid, *(void**)(R_RSP), s, (void*)R_RDI, (tmp)?tmp:"(nil)", (void*)(R_RDX)); |