mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
i386-fbsd-nat: Remove two unused variables.
Earlier versions of the change in 1285ce8629b37f800bf21731ee7c7a8b1b8d0233 used this variable, but not the final version that landed.
This commit is contained in:
@ -60,9 +60,6 @@ void
|
|||||||
i386_fbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
|
i386_fbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
|
||||||
{
|
{
|
||||||
struct gdbarch *gdbarch = regcache->arch ();
|
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 ());
|
pid_t pid = get_ptrace_pid (regcache->ptid ());
|
||||||
|
|
||||||
if (fetch_register_set<struct reg> (regcache, regnum, PT_GETREGS,
|
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)
|
i386_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
|
||||||
{
|
{
|
||||||
struct gdbarch *gdbarch = regcache->arch ();
|
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 ());
|
pid_t pid = get_ptrace_pid (regcache->ptid ());
|
||||||
|
|
||||||
if (store_register_set<struct reg> (regcache, regnum, PT_GETREGS, PT_SETREGS,
|
if (store_register_set<struct reg> (regcache, regnum, PT_GETREGS, PT_SETREGS,
|
||||||
|
Reference in New Issue
Block a user