From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1936) id 9090F3858D1E; Mon, 11 Apr 2022 18:03:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9090F3858D1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: John Baldwin To: gdb-cvs@sourceware.org Subject: [binutils-gdb] i386-fbsd-nat: Remove two unused variables. X-Act-Checkin: binutils-gdb X-Git-Author: John Baldwin X-Git-Refname: refs/heads/master X-Git-Oldrev: e165fcef1e79529442d6a5d8def71681c088cd18 X-Git-Newrev: aa1402a95d209f4f45ad9489ca985c57662eac6c Message-Id: <20220411180327.9090F3858D1E@sourceware.org> Date: Mon, 11 Apr 2022 18:03:27 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2022 18:03:27 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Daa1402a95d20= 9f4f45ad9489ca985c57662eac6c commit aa1402a95d209f4f45ad9489ca985c57662eac6c Author: John Baldwin Date: Mon Apr 11 11:00:01 2022 -0700 i386-fbsd-nat: Remove two unused variables. =20 Earlier versions of the change in 1285ce8629b37f800bf21731ee7c7a8b1b8d0233 used this variable, but not the final version that landed. Diff: --- gdb/i386-fbsd-nat.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c index 4b8ba8b598f..0a00aef5901 100644 --- a/gdb/i386-fbsd-nat.c +++ b/gdb/i386-fbsd-nat.c @@ -60,9 +60,6 @@ void i386_fbsd_nat_target::fetch_registers (struct regcache *regcache, int regn= um) { struct gdbarch *gdbarch =3D regcache->arch (); -#if defined(PT_GETFSBASE) || defined(PT_GETGSBASE) - const struct gdbarch_tdep *tdep =3D gdbarch_tdep (gdbarch); -#endif pid_t pid =3D get_ptrace_pid (regcache->ptid ()); =20 if (fetch_register_set (regcache, regnum, PT_GETREGS, @@ -142,9 +139,6 @@ void i386_fbsd_nat_target::store_registers (struct regcache *regcache, int regn= um) { struct gdbarch *gdbarch =3D regcache->arch (); -#if defined(PT_GETFSBASE) || defined(PT_GETGSBASE) - const struct gdbarch_tdep *tdep =3D gdbarch_tdep (gdbarch); -#endif pid_t pid =3D get_ptrace_pid (regcache->ptid ()); =20 if (store_register_set (regcache, regnum, PT_GETREGS, PT_SET= REGS,