public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PUSHED OBV] i386-fbsd-nat: Remove two unused variables.
@ 2022-04-11 18:03 John Baldwin
  0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2022-04-11 18:03 UTC (permalink / raw)
  To: gdb-patches

Earlier versions of the change in
1285ce8629b37f800bf21731ee7c7a8b1b8d0233 used this variable, but not
the final version that landed.
---
 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 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,
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-11 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 18:03 [PUSHED OBV] i386-fbsd-nat: Remove two unused variables John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).