This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.2-branch] Fix ravenscar-thread.c to use arch_ops
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 22 Jul 2018 19:38:18 -0000
- Subject: [binutils-gdb/gdb-8.2-branch] Fix ravenscar-thread.c to use arch_ops
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ac4f58d797780e305ba7be2c5d7efa8abf45fb74
commit ac4f58d797780e305ba7be2c5d7efa8abf45fb74
Author: Tom Tromey <tom@tromey.com>
Date: Sun Jul 8 12:17:51 2018 -0600
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.
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.
Diff:
---
gdb/ChangeLog | 6 ++++++
gdb/ravenscar-thread.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7388c7d..e2cf7fc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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-17 Tom Tromey <tom@tromey.com>
PR gdb/18624:
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);