aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:45:17 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:45:17 +0000
commit27524c05b80a6e6e54a6600ec48c1b089a4a2d2c (patch)
tree30e75c840c96f78c1d1124de940f48ec4ff4af29 /gdb
parentfbff0d8f0b5387fc8496e336372c4a19166ba390 (diff)
downloadgdb-27524c05b80a6e6e54a6600ec48c1b089a4a2d2c.zip
gdb-27524c05b80a6e6e54a6600ec48c1b089a4a2d2c.tar.gz
gdb-27524c05b80a6e6e54a6600ec48c1b089a4a2d2c.tar.bz2
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* bsd-uthread.c (bsd_uthread_fetch_registers) (bsd_uthread_store_registers): Use get_regcache_arch to get at the current architecture by regcache.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/bsd-uthread.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 57d986f..bc7c73f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
+ * bsd-uthread.c (bsd_uthread_fetch_registers)
+ (bsd_uthread_store_registers): Use get_regcache_arch to get at the
+ current architecture by regcache.
+
+2007-10-30 Markus Deuling <deuling@de.ibm.com>
+
* avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
get_frame_arch to get at the current architecture by frame_info.
diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c
index 488ab61..3c8714a 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -266,7 +266,7 @@ bsd_uthread_mourn_inferior (void)
static void
bsd_uthread_fetch_registers (struct regcache *regcache, int regnum)
{
- struct gdbarch *gdbarch = current_gdbarch;
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct bsd_uthread_ops *ops = gdbarch_data (gdbarch, bsd_uthread_data);
CORE_ADDR addr = ptid_get_tid (inferior_ptid);
CORE_ADDR active_addr;
@@ -292,7 +292,7 @@ bsd_uthread_fetch_registers (struct regcache *regcache, int regnum)
static void
bsd_uthread_store_registers (struct regcache *regcache, int regnum)
{
- struct gdbarch *gdbarch = current_gdbarch;
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct bsd_uthread_ops *ops = gdbarch_data (gdbarch, bsd_uthread_data);
CORE_ADDR addr = ptid_get_tid (inferior_ptid);
CORE_ADDR active_addr;