about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-24 11:23:55 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-24 11:23:55 +0200
commita20b8303790c07582fc2d05bc1fa657af198ea76 (patch)
tree94bec746f662d4867f5862d431fcbd6d27a1ffd5 /src
parent12fe96b1143d5c3a8e5371255115f80f39d83806 (diff)
downloadbox64-a20b8303790c07582fc2d05bc1fa657af198ea76.tar.gz
box64-a20b8303790c07582fc2d05bc1fa657af198ea76.zip
Better trace for getenv
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x64int3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c
index 36f7a7fa..4b8695ee 100755
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -115,6 +115,9 @@ void x64Int3(x64emu_t* emu)
                 } else  if(strstr(s, "strcmp")==s) {
                     tmp = (char*)(R_RDI);
                     snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", \"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)", (char*)R_RSI);
+                } else  if(strstr(s, "getenv")==s) {
+                    tmp = (char*)(R_RDI);
+                    snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)");
                 } else  if(!strcmp(s, "poll")) {
                     struct pollfd* pfd = (struct pollfd*)(R_RDI);
                     snprintf(buff, 255, "%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);