summaryrefslogtreecommitdiff
path: root/gdb/ravenscar-thread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-11 09:39:12 -0600
committerTom Tromey <tromey@redhat.com>2014-07-18 09:48:04 -0600
commit44e89118cb33b71a1eaf6514ea2b686aac1974dd (patch)
tree0d08fe1ec20ae75d02035d7948076814c969ce51 /gdb/ravenscar-thread.c
parentb0ed115fa5895ccb20d73e26d89a3b8430fe0f0a (diff)
downloadbinutils-gdb-44e89118cb33b71a1eaf6514ea2b686aac1974dd.tar.gz
fix calls to find_target_beneath
A long time ago Pedro pointed out that there are some calls to find_target_beneath that pass in an explicit target_ops; but which should instead use the ops provided to the method in question. See: https://sourceware.org/ml/gdb-patches/2014-01/msg00429.html This patch is just a minor cleanup to fix all such calls. There were only three. 2014-07-18 Tom Tromey <tromey@redhat.com> * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self" to find_target_beneath. * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to find_target_beneath. (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
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 060d5ce4cc7..c4a01a55abc 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -308,7 +308,7 @@ static void
ravenscar_prepare_to_store (struct target_ops *self,
struct regcache *regcache)
{
- struct target_ops *beneath = find_target_beneath (&ravenscar_ops);
+ struct target_ops *beneath = find_target_beneath (self);
if (!ravenscar_runtime_initialized ()
|| ptid_equal (inferior_ptid, base_magic_null_ptid)
@@ -327,7 +327,7 @@ ravenscar_prepare_to_store (struct target_ops *self,
static void
ravenscar_mourn_inferior (struct target_ops *ops)
{
- struct target_ops *beneath = find_target_beneath (&ravenscar_ops);
+ struct target_ops *beneath = find_target_beneath (ops);
base_ptid = null_ptid;
beneath->to_mourn_inferior (beneath);