about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-05-08 15:18:29 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-05-08 15:18:29 +0200
commit6607ddb15daeec7f54504a907e5db5013d3da618 (patch)
tree8edb73d83df9e24adeb12a26d4ad463a88509a90 /src
parentf18c1b39982061725285a2035c12bd3773ed3751 (diff)
downloadbox64-6607ddb15daeec7f54504a907e5db5013d3da618.tar.gz
box64-6607ddb15daeec7f54504a907e5db5013d3da618.zip
[TRACE] Better log for execv on Rolling log
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64int3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c
index 9d6f474b..be3679cc 100755
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -141,6 +141,10 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr)
                     tmp = (char*)(R_RDI);
                     snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\", %p, %zd)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (void*)(R_RSI), (size_t)R_RDX);
                     perr = 1;
+                } else if (!strcmp(s, "execv")) {
+                    tmp = (char*)(R_RDI);
+                    snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\", %p)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (void*)(R_RSI));
+                    perr = 1;
                 } else if (strstr(s, "mkdir")==s) {
                     tmp = (char*)(R_RDI);
                     snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\", %d)", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (int)(R_ESI));