aboutsummaryrefslogtreecommitdiff
path: root/gdb/ravenscar-thread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-08 12:17:51 -0600
committerTom Tromey <tom@tromey.com>2018-07-22 13:20:04 -0600
commit494f80a9321dccb939bf39afed66649702b563fe (patch)
treec026aa8cfa18eb74c25eedd1f5004ab5f2d28702 /gdb/ravenscar-thread.c
parentc51f6a54c28aaf2039f95553ff897338475fe8bf (diff)
downloadgdb-494f80a9321dccb939bf39afed66649702b563fe.zip
gdb-494f80a9321dccb939bf39afed66649702b563fe.tar.gz
gdb-494f80a9321dccb939bf39afed66649702b563fe.tar.bz2
Fix ravenscar-thread.c to use arch_ops
The change to turn target ops into methods accidentally introduced a bug in ravenscar-thread.c, changing some calls that were using "arch_ops" to use the target beneath. This patch changes ravenscar-thread.c to use these variables where appropriate. gdb/ChangeLog 2018-07-22 Tom Tromey <tom@tromey.com> * ravenscar-thread.c (ravenscar_thread_target::store_registers): Use arch_ops. (ravenscar_thread_target::prepare_to_store): Likewise.
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r--gdb/ravenscar-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 8bd31a5..e60fad8 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -442,7 +442,7 @@ ravenscar_thread_target::store_registers (struct regcache *regcache,
struct ravenscar_arch_ops *arch_ops
= gdbarch_ravenscar_ops (gdbarch);
- beneath ()->store_registers (regcache, regnum);
+ arch_ops->to_store_registers (regcache, regnum);
}
else
beneath ()->store_registers (regcache, regnum);
@@ -461,7 +461,7 @@ ravenscar_thread_target::prepare_to_store (struct regcache *regcache)
struct ravenscar_arch_ops *arch_ops
= gdbarch_ravenscar_ops (gdbarch);
- beneath ()->prepare_to_store (regcache);
+ arch_ops->to_prepare_to_store (regcache);
}
else
beneath ()->prepare_to_store (regcache);