Alexandre Julliard : ntdll: Don' t copy cached debug registers from the parent thread.

Alexandre Julliard julliard at winehq.org
Tue Jul 18 13:58:54 CDT 2017


Module: wine
Branch: master
Commit: fed30058bb97c32719557c4ab736cd3ce77273eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fed30058bb97c32719557c4ab736cd3ce77273eb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul 18 11:34:22 2017 +0200

ntdll: Don't copy cached debug registers from the parent thread.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/signal_i386.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 570189a..a40197a 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -2379,7 +2379,6 @@ NTSTATUS signal_alloc_thread( TEB **teb )
 {
     static size_t sigstack_zero_bits;
     struct ntdll_thread_data *thread_data;
-    struct ntdll_thread_data *parent_data = NULL;
     SIZE_T size;
     void *addr = NULL;
     NTSTATUS status;
@@ -2393,7 +2392,6 @@ NTSTATUS signal_alloc_thread( TEB **teb )
         signal_stack_mask = (1 << sigstack_zero_bits) - 1;
         signal_stack_size = (1 << sigstack_zero_bits) - teb_size;
     }
-    else parent_data = ntdll_get_thread_data();
 
     size = signal_stack_mask + 1;
     if (!(status = NtAllocateVirtualMemory( NtCurrentProcess(), &addr, sigstack_zero_bits,
@@ -2409,17 +2407,6 @@ NTSTATUS signal_alloc_thread( TEB **teb )
             NtFreeVirtualMemory( NtCurrentProcess(), &addr, &size, MEM_RELEASE );
             status = STATUS_TOO_MANY_THREADS;
         }
-        if (parent_data)
-        {
-            /* inherit debug registers from parent thread */
-            thread_data->dr0 = parent_data->dr0;
-            thread_data->dr1 = parent_data->dr1;
-            thread_data->dr2 = parent_data->dr2;
-            thread_data->dr3 = parent_data->dr3;
-            thread_data->dr6 = parent_data->dr6;
-            thread_data->dr7 = parent_data->dr7;
-        }
-
     }
     return status;
 }




More information about the wine-cvs mailing list