From: Tom Tromey Date: Wed, 30 Nov 2022 20:50:27 +0000 (-0700) Subject: Remove call to registers_changed from windows-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cb80f0e5bddc29cf50b08f0a4d2cca8ea330a23;p=binutils-gdb.git 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 --- 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.