Fix ravenscar-thread.c to use arch_ops
authorTom Tromey <tom@tromey.com>
Sun, 8 Jul 2018 18:17:51 +0000 (12:17 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:04 +0000 (13:20 -0600)
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.

gdb/ChangeLog
gdb/ravenscar-thread.c

index 591cb935aa265fff5ac43bdf3c2ccd523b505bc0..5b557a6e8a76eb848a5bb2aabcb4e45235b33b1c 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2018-07-22  Tom Tromey  <tom@tromey.com>
 
        * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
index 8bd31a5a725a2cf9b6a2b0306886cea6e233bc9c..e60fad874669c6bfa5595e130210912f3fade8b0 100644 (file)
@@ -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);
This page took 0.03072 seconds and 4 git commands to generate.