[PATCH v2 1/4] server: Check for system regs before suspending for ptrace.
Paul Gofman
pgofman at codeweavers.com
Mon May 24 06:45:40 CDT 2021
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
v2:
- no changes.
server/ptrace.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/ptrace.c b/server/ptrace.c
index 3621e8d82ad..b2d23d89aaf 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -571,15 +571,15 @@ void get_thread_context( struct thread *thread, context_t *context, unsigned int
/* all other regs are handled on the client side */
assert( flags == SERVER_CTX_DEBUG_REGISTERS );
- if (!suspend_for_ptrace( thread )) return;
-
if (!(thread->system_regs & SERVER_CTX_DEBUG_REGISTERS))
{
/* caller has initialized everything to 0 already, just return */
context->flags |= SERVER_CTX_DEBUG_REGISTERS;
- goto done;
+ return;
}
+ if (!suspend_for_ptrace( thread )) return;
+
for (i = 0; i < 8; i++)
{
if (i == 4 || i == 5) continue;
--
2.31.1
More information about the wine-devel
mailing list