aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64nbsd-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-17 18:45:09 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-17 18:45:09 +0000
commitec22ec346b8e22135fd4cb48aa3853f032dee331 (patch)
tree54b381819ab21219ca7a72b8f76df555a5cde60d /gdb/sparc64nbsd-nat.c
parenta97b0ac8cf1c8a5148d8c79908a0ef9378891e31 (diff)
downloadgdb-ec22ec346b8e22135fd4cb48aa3853f032dee331.zip
gdb-ec22ec346b8e22135fd4cb48aa3853f032dee331.tar.gz
gdb-ec22ec346b8e22135fd4cb48aa3853f032dee331.tar.bz2
* sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
Use it instead of current_gdbarch. Pass architecture to sparc32_gregset_supplies_p. (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p. * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p, sparc64nbsd_fpregset_supplies_p): Likewise. * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p): Add GDBARCH parameter. (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise. (sparc_fetch_inferior_registers): Pass regcache architecture to sparc_gregset_supplies_p and sparc_fpregset_supplies_p. (sparc_store_inferior_registers): Likewise. * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p: Add GDBARCH parameter. (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
Diffstat (limited to 'gdb/sparc64nbsd-nat.c')
-rw-r--r--gdb/sparc64nbsd-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64nbsd-nat.c
index e445f3a..355ad87 100644
--- a/gdb/sparc64nbsd-nat.c
+++ b/gdb/sparc64nbsd-nat.c
@@ -83,10 +83,10 @@ sparc64nbsd_collect_fpregset (const struct regcache *regcache,
/* Determine whether `gregset_t' contains register REGNUM. */
static int
-sparc64nbsd_gregset_supplies_p (int regnum)
+sparc64nbsd_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)
@@ -108,10 +108,10 @@ sparc64nbsd_gregset_supplies_p (int regnum)
/* Determine whether `fpregset_t' contains register REGNUM. */
static int
-sparc64nbsd_fpregset_supplies_p (int regnum)
+sparc64nbsd_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)