Remove call to registers_changed from windows-nat.c
Commit Message
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.
---
gdb/windows-nat.c | 1 -
1 file changed, 1 deletion(-)
Comments
On 12/1/22 13:28, Tom Tromey via Gdb-patches wrote:
> 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.
> ---
> gdb/windows-nat.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
> index 17422e15f80..4b0760c5804 100644
> --- a/gdb/windows-nat.c
> +++ b/gdb/windows-nat.c
> @@ -2881,7 +2881,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.34.3
>
Makes sense to me,
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Simon
@@ -2881,7 +2881,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.