summaryrefslogtreecommitdiff
path: root/gdb/sparc64-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/sparc64-nat.c
parenta97b0ac8cf1c8a5148d8c79908a0ef9378891e31 (diff)
downloadbinutils-gdb-ec22ec346b8e22135fd4cb48aa3853f032dee331.tar.gz
* 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/sparc64-nat.c')
-rw-r--r--gdb/sparc64-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c
index 7249b19d08b..516c2a15ec0 100644
--- a/gdb/sparc64-nat.c
+++ b/gdb/sparc64-nat.c
@@ -26,10 +26,10 @@
/* 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)
@@ -52,10 +52,10 @@ sparc64_gregset_supplies_p (int 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)