diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-06-16 15:01:12 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-06-16 15:01:12 +0200 |
| commit | bef0a5f793c111b9dd958f19c92be3e79ba7fbd6 (patch) | |
| tree | 5c6886b4996f01c493853a7c95615d28155c2b56 /src | |
| parent | 8e694eac57952921d815e732d970d681c638fcb8 (diff) | |
| download | box64-bef0a5f793c111b9dd958f19c92be3e79ba7fbd6.tar.gz box64-bef0a5f793c111b9dd958f19c92be3e79ba7fbd6.zip | |
Better trace for lseek functions
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x64int3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index a1bc590e..e8fc3ad7 100755 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -127,6 +127,12 @@ void x64Int3(x64emu_t* emu) tmp = (char*)(R_RDI); snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", 0x%x)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", R_ESI); perr = 1; + } else if (!strcmp(s, "lseek64") || !strcmp(s, "my_lseek64")) { + snprintf(buff, 255, "%04d|%p: Calling %s(%d, %ld, %d)", tid, *(void**)(R_RSP), s, (int)R_EDI, (int64_t)R_RSI, (int)R_EDX); + perr = 1; + } else if (!strcmp(s, "lseek") || !strcmp(s, "my_lseek")) { + snprintf(buff, 255, "%04d|%p: Calling %s(%d, %ld, %d)", tid, *(void**)(R_RSP), s, (int)R_EDI, (int64_t)R_RSI, (int)R_EDX); + perr = 1; } else if (strstr(s, "puts")==s) { tmp = (char*)(R_RDI); snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)"); |