This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb: Add riscv to list of architectures with a save_reggroup
- From: Andrew Burgess <aburgess at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 7 Mar 2018 17:40:35 -0000
- Subject: [binutils-gdb] gdb: Add riscv to list of architectures with a save_reggroup
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea005f31ca7a823680c70a75ae073bee52487859
commit ea005f31ca7a823680c70a75ae073bee52487859
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date: Tue Mar 6 16:27:13 2018 +0000
gdb: Add riscv to list of architectures with a save_reggroup
The regcache cooked_read test needs to know which architectures have a
save_reggroup, riscv does and needs adding to the list.
gdb/ChangeLog:
* regcache.c (cooked_read_test): Add riscv to the list of
architectures that have a save_reggroup.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/regcache.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8de20e6..928dbab 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * regcache.c (cooked_read_test): Add riscv to the list of
+ architectures that have a save_reggroup.
+
2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
diff --git a/gdb/regcache.c b/gdb/regcache.c
index c73582f..40c58a0 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1695,7 +1695,8 @@ cooked_read_test (struct gdbarch *gdbarch)
|| bfd_arch == bfd_arch_msp430 || bfd_arch == bfd_arch_mep
|| bfd_arch == bfd_arch_mips || bfd_arch == bfd_arch_v850_rh850
|| bfd_arch == bfd_arch_tic6x || bfd_arch == bfd_arch_mn10300
- || bfd_arch == bfd_arch_rl78 || bfd_arch == bfd_arch_score)
+ || bfd_arch == bfd_arch_rl78 || bfd_arch == bfd_arch_score
+ || bfd_arch == bfd_arch_riscv)
{
/* Raw registers. If raw registers are not in save_reggroup,
their status are unknown. */