diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-09-11 16:54:17 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-09-11 16:54:17 +0200 |
| commit | e1a91ea420336d9910906427c4f5e714e79791ce (patch) | |
| tree | c60732018d1b25b86d38af937ec09df3257f9386 /src | |
| parent | bd60ed8df0635f03c87f0f2fdf934d09c3674f28 (diff) | |
| download | box64-e1a91ea420336d9910906427c4f5e714e79791ce.tar.gz box64-e1a91ea420336d9910906427c4f5e714e79791ce.zip | |
[BOX32] Improved trace for 32bits pthread_setname_np
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x86int3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c index c214770a..91744bc7 100755 --- a/src/emu/x86int3.c +++ b/src/emu/x86int3.c @@ -273,6 +273,9 @@ void x86Int3(x64emu_t* emu, uintptr_t* addr) snprintf(buff, 255, "%04d|%p: Calling %s(%p, \"%s\")", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+8))); } else if(strstr(s, "pthread_mutex_lock")==s) { snprintf(buff, 255, "%04d|%p: Calling %s(%p)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, from_ptrv(*(ptr_t*)from_ptr(R_ESP+4))); + } else if(strstr(s, "pthread_setname_np")==s) { + post = 7; + snprintf(buff, 255, "%04d|%p: Calling %s(%p, \"%s\")", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)),from_ptrv(*(ptr_t*)from_ptr(R_ESP+8))); } else if(strstr(s, "pthread_create")==s) { post = 7; snprintf(buff, 255, "%04d|%p: Calling %s(%p, %p, %p, %p)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+8)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+12)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+16))); |