aboutsummaryrefslogtreecommitdiff
path: root/gdb/ravenscar-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r--gdb/ravenscar-thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 7e3015d..850b84d 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -276,7 +276,7 @@ ravenscar_fetch_registers (struct target_ops *ops,
beneath->to_fetch_registers (beneath, regcache, regnum);
else
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
struct ravenscar_arch_ops *arch_ops
= gdbarch_ravenscar_ops (gdbarch);
@@ -297,7 +297,7 @@ ravenscar_store_registers (struct target_ops *ops,
beneath->to_store_registers (beneath, regcache, regnum);
else
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
struct ravenscar_arch_ops *arch_ops
= gdbarch_ravenscar_ops (gdbarch);
@@ -318,7 +318,7 @@ ravenscar_prepare_to_store (struct target_ops *self,
beneath->to_prepare_to_store (beneath, regcache);
else
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
struct ravenscar_arch_ops *arch_ops
= gdbarch_ravenscar_ops (gdbarch);