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 <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2022-11-30 13:50:27 -07:00
parent 5f8363d924
commit 4cb80f0e5b

View 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.