about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-05 16:45:50 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-05 16:45:50 +0200
commit67c6a661e5a46d024867c74dec62fa11c4b55050 (patch)
treeb399fec47c28985cea37a0d82423ffb57269c042 /src
parentb897d558739c8215e2eef57ce5ff397059448c2f (diff)
downloadbox64-67c6a661e5a46d024867c74dec62fa11c4b55050.tar.gz
box64-67c6a661e5a46d024867c74dec62fa11c4b55050.zip
Better trace for glXGetProcAddress
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 17e724bc..2c8a4127 100755
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -117,6 +117,9 @@ void x64Int3(x64emu_t* emu)
                 } else  if(strstr(s, "my___printf_chk")) {
                     tmp = (char*)(R_RSI);
                     snprintf(buff, 255, "%04d|%p: Calling %s(%d, \"%s\" (,%p))", tid, *(void**)(R_RSP), s, R_EDI, (tmp)?tmp:"(nil)", (void*)(R_RDX));
+                } else  if(!strcmp(s, "glXGetProcAddress") || !strcmp(s, "SDL_GL_GetProcAddress")) {
+                    tmp = (char*)(R_RDI);
+                    snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_RSP), s, (tmp)?tmp:"(nil)");
                 } else  if(!strcmp(s, "mmap64") || !strcmp(s, "mmap")) {
                     snprintf(buff, 255, "%04d|%p: Calling %s(%p, %lu, 0x%x, 0x%x, %d, %ld)", tid, *(void**)(R_RSP), s, 
                         (void*)R_RDI, R_RSI, (int)(R_RDX), (int)R_RCX, (int)R_R8, R_R9);