about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-03-08 18:35:32 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-03-08 18:35:32 +0100
commit35d734e6ac805902effdbf47642a6323e86725d6 (patch)
tree30533e455efd1432a7ae1c32816ab9539cd9e830 /src
parent3937fc4b7172d69e6573ca8756a0b6824d460cbf (diff)
downloadbox64-35d734e6ac805902effdbf47642a6323e86725d6.tar.gz
box64-35d734e6ac805902effdbf47642a6323e86725d6.zip
[TRACE] Better trace for (f)getxattr
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64int3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c
index 4a5792ff..b407848c 100644
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -200,6 +200,12 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr)
                 } else if (!strcmp(s, "recvmsg")) {
                     snprintf(buff, 256, "%04d|%p: Calling %s(%d, %p, 0x%x)", tid, *(void**)(R_RSP), s, R_EDI, (void*)R_RSI, R_EDX);
                     perr = 1;
+                } else if (!strcmp(s, "getxattr")) {
+                    snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\", \"%s\", %p, 0x%zx)", tid, *(void**)(R_RSP), s, (char*)R_RDI, (char*)R_RSI, (void*)R_RDX, R_RCX);
+                    perr = 1;
+                } else if (!strcmp(s, "fgetxattr")) {
+                    snprintf(buff, 256, "%04d|%p: Calling %s(%d, \"%s\", %p, 0x%zx)", tid, *(void**)(R_RSP), s, R_EDI, (char*)R_RSI, (void*)R_RDX, R_RCX);
+                    perr = 1;
                 } else if (strstr(s, "puts")==s) {
                     tmp = (char*)(R_RDI);
                     snprintf(buff, 256, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)");