From bef0a5f793c111b9dd958f19c92be3e79ba7fbd6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 16 Jun 2021 15:01:12 +0200 Subject: Better trace for lseek functions --- src/emu/x64int3.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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)"); -- cgit 1.4.1