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.
This commit is contained in:
Tom Tromey
2018-07-08 12:17:51 -06:00
parent c51f6a54c2
commit 494f80a932
2 changed files with 8 additions and 2 deletions

View 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

View 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);