aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-11 11:00:01 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-11 11:01:43 -0700
commitaa1402a95d209f4f45ad9489ca985c57662eac6c (patch)
treebaa6500f1d00fa358e4239aadf1474626884c716 /gdb
parente165fcef1e79529442d6a5d8def71681c088cd18 (diff)
downloadgdb-aa1402a95d209f4f45ad9489ca985c57662eac6c.zip
gdb-aa1402a95d209f4f45ad9489ca985c57662eac6c.tar.gz
gdb-aa1402a95d209f4f45ad9489ca985c57662eac6c.tar.bz2
i386-fbsd-nat: Remove two unused variables.
Earlier versions of the change in 1285ce8629b37f800bf21731ee7c7a8b1b8d0233 used this variable, but not the final version that landed.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/i386-fbsd-nat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c
index 4b8ba8b..0a00aef 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 regnum)
{
struct gdbarch *gdbarch = regcache->arch ();
-#if defined(PT_GETFSBASE) || defined(PT_GETGSBASE)
- const struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-#endif
pid_t pid = get_ptrace_pid (regcache->ptid ());
if (fetch_register_set<struct reg> (regcache, regnum, PT_GETREGS,
@@ -142,9 +139,6 @@ void
i386_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = regcache->arch ();
-#if defined(PT_GETFSBASE) || defined(PT_GETGSBASE)
- const struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-#endif
pid_t pid = get_ptrace_pid (regcache->ptid ());
if (store_register_set<struct reg> (regcache, regnum, PT_GETREGS, PT_SETREGS,