server: Reset hardware breakpoint sizes before setting them.

Workaround for kernel bug 200965.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-12-18 17:18:09 +01:00
parent 530df61f2f
commit 53375be47c
1 changed files with 3 additions and 0 deletions

View File

@ -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: