From 4cb80f0e5bddc29cf50b08f0a4d2cca8ea330a23 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 Nov 2022 13:50:27 -0700 Subject: [PATCH] Remove call to registers_changed from windows-nat.c I noticed that windows_nat_target::interrupt calls registers_changed. However, I don't think there's any reason to do this, because this will happen automatically when the inferior stop is processed. Approved-By: Simon Marchi --- gdb/windows-nat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 900d8c3d3c4..b3329cd1a0d 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2877,7 +2877,6 @@ windows_nat_target::interrupt () DEBUG_EVENTS ("GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)"); CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, windows_process.current_event.dwProcessId)); - registers_changed (); /* refresh register state */ } /* Helper for windows_xfer_partial that handles memory transfers. -- 2.30.2