Alexandre Julliard : server: Reset hardware breakpoint sizes before setting them.

Alexandre Julliard julliard at winehq.org
Sun Mar 3 13:21:31 CST 2019


Module: wine
Branch: oldstable
Commit: 5ac340358ab9a1a89ec23595c270207aefc7e2c3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5ac340358ab9a1a89ec23595c270207aefc7e2c3

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec 18 17:18:09 2018 +0100

server: Reset hardware breakpoint sizes before setting them.

Workaround for kernel bug 200965.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 53375be47c07c1aec7f97abaaea177b318f04e08)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 server/ptrace.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/ptrace.c b/server/ptrace.c
index 808328e..6be1591 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -628,6 +628,9 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
 
     if (!suspend_for_ptrace( thread )) return;
 
+    /* force all breakpoint lengths to 1, workaround for kernel bug 200965 */
+    ptrace( PTRACE_POKEUSER, pid, DR_OFFSET(7), 0x11110055 );
+
     switch (context->cpu)
     {
     case CPU_x86:




More information about the wine-cvs mailing list