about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-05-03 16:57:14 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-05-03 16:57:14 +0200
commit35fa13899a09334d598e230917965ae9ae1aa992 (patch)
tree8f1319bb0f7503448ddf5fc8f6b71174a94f5fcb /src
parent5ee43854771d711cc75fa75693efcd11e933498c (diff)
downloadbox64-35fa13899a09334d598e230917965ae9ae1aa992.tar.gz
box64-35fa13899a09334d598e230917965ae9ae1aa992.zip
[TRACE] Better log for unsetenv and putenv functions
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64int3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c
index f77147ef..0aa3ba45 100644
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -233,6 +233,10 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr)
                     snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)");
                 } else if (strstr(s, "setenv")==s) {
                     snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\", \"%s\", %d)", tid, *(void**)(R_RSP), s, (char*)R_RDI, (char*)R_RSI, R_EDX);
+                } else if (strstr(s, "unsetenv")==s) {
+                    snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (char*)R_RDI);
+                } else if (strstr(s, "putenv")==s) {
+                    snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (char*)R_RDI);
                 } else if (!strcmp(s, "poll")) {
                     struct pollfd* pfd = (struct pollfd*)(R_RDI);
                     snprintf(buff, 256, "%04d|%p: Calling %s(%p[%d/%d/%d, ...], %d, %d)", tid, *(void**)(R_RSP), s, pfd, pfd->fd, pfd->events, pfd->revents, R_ESI, R_EDX);