Attaching the debugger to a running process should work again
(reported by Eric Pouech). Misc cleanups.
diff --git a/server/context_sparc.c b/server/context_sparc.c
index 20b4a26..173c3f7 100644
--- a/server/context_sparc.c
+++ b/server/context_sparc.c
@@ -45,7 +45,7 @@
/* retrieve a thread context */
static void get_thread_context( struct thread *thread, unsigned int flags, CONTEXT *context )
{
- int pid = thread->unix_pid;
+ int pid = get_ptrace_pid(thread);
if (flags & CONTEXT_FULL)
{
struct regs regs;