From: Hannes Domani Date: Fri, 23 Jan 2026 19:07:04 +0000 (+0100) Subject: Remove duplicate code from windows_nat_target::resume X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0f1ae77fc046f1072994d9e4715a837e73713c2;p=thirdparty%2Fbinutils-gdb.git Remove duplicate code from windows_nat_target::resume Updating the debug registers and calling SetThreadContext is already done in windows_continue, called directly afterwards, so this removes it from windows_nat_target::resume. Approved-By: Tom Tromey --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index e86877b4c50..a6fd199530c 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1378,22 +1378,6 @@ windows_nat_target::resume (ptid_t ptid, int step, enum gdb_signal sig) fetch_registers (regcache, gdbarch_ps_regnum (gdbarch)); context->EFlags |= FLAG_TRACE_BIT; } - - if (context->ContextFlags) - { - if (th->debug_registers_changed) - { - context->Dr0 = windows_process.dr[0]; - context->Dr1 = windows_process.dr[1]; - context->Dr2 = windows_process.dr[2]; - context->Dr3 = windows_process.dr[3]; - context->Dr6 = DR6_CLEAR_VALUE; - context->Dr7 = windows_process.dr[7]; - th->debug_registers_changed = false; - } - CHECK (set_thread_context (th->h, context)); - context->ContextFlags = 0; - } }); }