aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-10 17:05:31 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-10 17:05:31 +0000
commite6d4f032a508328be58d14fb08b323531c543c0f (patch)
tree36a21e660ef61ba12f817a10d39fbbbc7ea4f471
parent2eb4d78bfd092cb2cf360e679bf8dcd7d212764a (diff)
downloadgdb-e6d4f032a508328be58d14fb08b323531c543c0f.zip
gdb-e6d4f032a508328be58d14fb08b323531c543c0f.tar.gz
gdb-e6d4f032a508328be58d14fb08b323531c543c0f.tar.bz2
2007-10-10 Markus Deuling <deuling@de.ibm.com>
* sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use get_regcache_arch to get at the current architecture by regcache. * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset) (sparc64_supply_fpregset, sparc64_collect_fpregset): Use get_regcache_arch to get at the current architecture by regcache. * sparc64nbsd-nat. (sparc64nbsd_supply_gregset) (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset) (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the current architecture by regcache.
-rw-r--r--gdb/ChangeLog14
-rw-r--r--gdb/sparc-tdep.c4
-rw-r--r--gdb/sparc64-tdep.c8
-rw-r--r--gdb/sparc64nbsd-nat.c8
4 files changed, 24 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 25f7930..a8b4d2d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,19 @@
2007-10-10 Markus Deuling <deuling@de.ibm.com>
+ * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
+ get_regcache_arch to get at the current architecture by regcache.
+
+ * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
+ (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
+ get_regcache_arch to get at the current architecture by regcache.
+
+ * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
+ (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
+ (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
+ current architecture by regcache.
+
+2007-10-10 Markus Deuling <deuling@de.ibm.com>
+
* remote-mips.c (mips_wait, mips_fetch_registers)
(mips_store_registers): Use get_regcache_arch to get at the
current architecture by regcache.
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index f94a782..4324bc2 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1532,7 +1532,7 @@ sparc_supply_rwindow (struct regcache *regcache, CORE_ADDR sp, int regnum)
/* Clear out the top half of the temporary buffer, and put the
register value in the bottom half if we're in 64-bit mode. */
- if (gdbarch_ptr_bit (current_gdbarch) == 64)
+ if (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 64)
{
memset (buf, 0, 4);
offset = 4;
@@ -1599,7 +1599,7 @@ sparc_collect_rwindow (const struct regcache *regcache,
sp &= 0xffffffffUL;
/* Only use the bottom half if we're in 64-bit mode. */
- if (gdbarch_ptr_bit (current_gdbarch) == 64)
+ if (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 64)
offset = 4;
for (i = SPARC_L0_REGNUM; i <= SPARC_I7_REGNUM; i++)
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 1d3a712..7d955d9 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -1170,7 +1170,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset,
struct regcache *regcache,
int regnum, const void *gregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
const gdb_byte *regs = gregs;
int i;
@@ -1284,7 +1284,7 @@ sparc64_collect_gregset (const struct sparc_gregset *gregset,
const struct regcache *regcache,
int regnum, void *gregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
gdb_byte *regs = gregs;
int i;
@@ -1391,7 +1391,7 @@ void
sparc64_supply_fpregset (struct regcache *regcache,
int regnum, const void *fpregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
const gdb_byte *regs = fpregs;
int i;
@@ -1426,7 +1426,7 @@ void
sparc64_collect_fpregset (const struct regcache *regcache,
int regnum, void *fpregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
gdb_byte *regs = fpregs;
int i;
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64nbsd-nat.c
index 246e922..b885139 100644
--- a/gdb/sparc64nbsd-nat.c
+++ b/gdb/sparc64nbsd-nat.c
@@ -34,7 +34,7 @@ sparc64nbsd_supply_gregset (const struct sparc_gregset *gregset,
struct regcache *regcache,
int regnum, const void *gregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
if (sparc32)
sparc32_supply_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs);
@@ -47,7 +47,7 @@ sparc64nbsd_collect_gregset (const struct sparc_gregset *gregset,
const struct regcache *regcache,
int regnum, void *gregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
if (sparc32)
sparc32_collect_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs);
@@ -59,7 +59,7 @@ static void
sparc64nbsd_supply_fpregset (struct regcache *regcache,
int regnum, const void *fpregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
if (sparc32)
sparc32_supply_fpregset (regcache, regnum, fpregs);
@@ -71,7 +71,7 @@ static void
sparc64nbsd_collect_fpregset (const struct regcache *regcache,
int regnum, void *fpregs)
{
- int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32);
+ int sparc32 = (gdbarch_ptr_bit (get_regcache_arch (regcache)) == 32);
if (sparc32)
sparc32_collect_fpregset (regcache, regnum, fpregs);