/* Native-dependent code for FreeBSD/arm.
- Copyright (C) 2017-2018 Free Software Foundation, Inc.
+ Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of GDB.
/* Determine if PT_GETREGS fetches REGNUM. */
static bool
-getregs_supplies (struct gdbarch *gdbarch, int regnum)
+getregs_supplies (int regnum)
{
return ((regnum >= ARM_A1_REGNUM && regnum <= ARM_PC_REGNUM)
|| regnum == ARM_PS_REGNUM);
/* Determine if PT_GETVFPREGS fetches REGNUM. */
static bool
-getvfpregs_supplies (struct gdbarch *gdbarch, int regnum)
+getvfpregs_supplies (int regnum)
{
return ((regnum >= ARM_D0_REGNUM && regnum <= ARM_D31_REGNUM)
|| regnum == ARM_FPSCR_REGNUM);
{
pid_t pid = get_ptrace_pid (regcache->ptid ());
- struct gdbarch *gdbarch = regcache->arch ();
- if (regnum == -1 || getregs_supplies (gdbarch, regnum))
+ if (regnum == -1 || getregs_supplies (regnum))
{
struct reg regs;
}
#ifdef PT_GETVFPREGS
- if (regnum == -1 || getvfpregs_supplies (gdbarch, regnum))
+ if (regnum == -1 || getvfpregs_supplies (regnum))
{
struct vfpreg vfpregs;
{
pid_t pid = get_ptrace_pid (regcache->ptid ());
- struct gdbarch *gdbarch = regcache->arch ();
- if (regnum == -1 || getregs_supplies (gdbarch, regnum))
+ if (regnum == -1 || getregs_supplies (regnum))
{
struct reg regs;
}
#ifdef PT_GETVFPREGS
- if (regnum == -1 || getvfpregs_supplies (gdbarch, regnum))
+ if (regnum == -1 || getvfpregs_supplies (regnum))
{
struct vfpreg vfpregs;
desc = arm_fbsd_read_description_auxv (this);
if (desc == NULL)
- desc = this->beneath->read_description ();
+ desc = this->beneath ()->read_description ();
return desc;
}