/* Native-dependent code for GNU/Linux UltraSPARC.
- Copyright (C) 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2003-2017 Free Software Foundation, Inc.
This file is part of GDB.
/* Determine whether `gregset_t' contains register REGNUM. */
static int
-sparc64_gregset_supplies_p (int regnum)
+sparc64_gregset_supplies_p (struct gdbarch *gdbarch, int regnum)
{
- if (gdbarch_ptr_bit (current_gdbarch) == 32)
- return sparc32_gregset_supplies_p (regnum);
+ if (gdbarch_ptr_bit (gdbarch) == 32)
+ return sparc32_gregset_supplies_p (gdbarch, regnum);
/* Integer registers. */
if ((regnum >= SPARC_G1_REGNUM && regnum <= SPARC_G7_REGNUM)
/* Determine whether `fpregset_t' contains register REGNUM. */
static int
-sparc64_fpregset_supplies_p (int regnum)
+sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum)
{
- if (gdbarch_ptr_bit (current_gdbarch) == 32)
- return sparc32_fpregset_supplies_p (regnum);
+ if (gdbarch_ptr_bit (gdbarch) == 32)
+ return sparc32_fpregset_supplies_p (gdbarch, regnum);
/* Floating-point registers. */
if ((regnum >= SPARC_F0_REGNUM && regnum <= SPARC_F31_REGNUM)