Remove call to registers_changed from windows-nat.c
authorTom Tromey <tromey@adacore.com>
Wed, 30 Nov 2022 20:50:27 +0000 (13:50 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 1 Dec 2022 18:40:12 +0000 (11:40 -0700)
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 <simon.marchi@efficios.com>
gdb/windows-nat.c

index 900d8c3d3c4347ddf7b574447d6ef542d52e192a..b3329cd1a0d0b251e6efb3cb5684f8abae788f72 100644 (file)
@@ -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.