server: Use the standard suspend mechanism to simulate a breakpoint
in an active process, instead of sending a SIGTRAP.
diff --git a/server/context_sparc.c b/server/context_sparc.c
index 843eb11..eb8cc2c 100644
--- a/server/context_sparc.c
+++ b/server/context_sparc.c
@@ -159,17 +159,10 @@
context |= flags & (CONTEXT_CONTROL|CONTEXT_INTEGER);
}
-/* retrieve the current instruction pointer of a thread */
-void *get_thread_ip( struct thread *thread )
+/* retrieve the current instruction pointer of a context */
+void *get_context_ip( const CONTEXT *context )
{
- CONTEXT context;
- context.pc = 0;
- if (suspend_for_ptrace( thread ))
- {
- get_thread_context_ptrace( thread, CONTEXT_CONTROL, &context );
- resume_after_ptrace( thread );
- }
- return (void *)context.pc;
+ return (void *)context->pc;
}
/* retrieve the thread context */