server: Stop i386 assertions from failing on x86_64.
Mike Ruprecht
cmaiku at gmail.com
Sat Feb 28 03:26:05 CST 2009
---
server/ptrace.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/server/ptrace.c b/server/ptrace.c
index b446de9..81c9081 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -533,7 +533,11 @@ void get_thread_context( struct thread *thread, CONTEXT *context, unsigned int f
long data[8];
/* all other regs are handled on the client side */
+#if defined(__i386__)
assert( (flags | CONTEXT_i386) == CONTEXT_DEBUG_REGISTERS );
+#elif defined(__X86_64__)
+ assert( (flags | CONTEXT_AMD64) == CONTEXT_DEBUG_REGISTERS );
+#endif
if (!suspend_for_ptrace( thread )) return;
@@ -565,7 +569,11 @@ void set_thread_context( struct thread *thread, const CONTEXT *context, unsigned
int pid = get_ptrace_tid( thread );
/* all other regs are handled on the client side */
+#if defined(__i386__)
assert( (flags | CONTEXT_i386) == CONTEXT_DEBUG_REGISTERS );
+#elif defined(__X86_64__)
+ assert( (flags | CONTEXT_AMD64) == CONTEXT_DEBUG_REGISTERS );
+#endif
if (!suspend_for_ptrace( thread )) return;
--
1.5.6.3
More information about the wine-patches
mailing list