[PATCH 0/1] MR8562: server: Following a1da537, always use the thread Unix id in ptrace for i386.
This allow wine to be build on the i386 architecture on FreeBSD. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8562
From: Thibault Payet <contact(a)thibaultpayet.fr> --- server/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ptrace.c b/server/ptrace.c index 215808a58a8..955567a704f 100644 --- a/server/ptrace.c +++ b/server/ptrace.c @@ -687,7 +687,7 @@ void init_thread_context( struct thread *thread ) struct dbreg dbregs; memset( &dbregs, 0, sizeof(dbregs) ); - ptrace( PTRACE_SETDBREGS, get_ptrace_tid( thread ), (caddr_t)&dbregs, 0 ); + ptrace( PTRACE_SETDBREGS, thread->unix_tid, (caddr_t)&dbregs, 0 ); resume_after_ptrace( thread ); } thread->system_regs = 0; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8562
participants (2)
-
Thibault Payet -
Thibault Payet (@thpayet)