From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id F2B1C3858D3C; Thu, 1 Dec 2022 18:42:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2B1C3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669920123; bh=xfwaaZiw8CEDtg0AMQExwHM7v8IdE8mBMVbMIh60p3E=; h=From:To:Subject:Date:From; b=n8g7RJX6qGZqP17rQ0YPJIqFOZiyDeJ7BDZUIfoeu1O631uAqZuQf/lpZsJewoRaV 7yusMJiFZjbLA9uf99Lx2IYR/B7rvTHNRSsHOxYwDtolZL/xMPndU8jPrMhnB1fMx6 lXfVkx9YLcPuDmgELqfpx/6RT+c+5oKbXScIhm8I= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove call to registers_changed from windows-nat.c X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 5f8363d9248f1864b58d329a2c734527c3713055 X-Git-Newrev: 4cb80f0e5bddc29cf50b08f0a4d2cca8ea330a23 Message-Id: <20221201184203.F2B1C3858D3C@sourceware.org> Date: Thu, 1 Dec 2022 18:42:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4cb80f0e5bdd= c29cf50b08f0a4d2cca8ea330a23 commit 4cb80f0e5bddc29cf50b08f0a4d2cca8ea330a23 Author: Tom Tromey Date: Wed Nov 30 13:50:27 2022 -0700 Remove call to registers_changed from windows-nat.c =20 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. =20 Approved-By: Simon Marchi Diff: --- 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 */ } =20 /* Helper for windows_xfer_partial that handles memory transfers.