aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-03-06 16:27:13 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-03-07 17:36:37 +0000
commitea005f31ca7a823680c70a75ae073bee52487859 (patch)
treec53b97c431d27421fd9a50f52e7694323b46b67b /gdb/regcache.c
parent0c1ded8dc0be9c61975e04a0b416b064223f7bda (diff)
downloadgdb-ea005f31ca7a823680c70a75ae073bee52487859.zip
gdb-ea005f31ca7a823680c70a75ae073bee52487859.tar.gz
gdb-ea005f31ca7a823680c70a75ae073bee52487859.tar.bz2
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.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c3
1 files changed, 2 insertions, 1 deletions
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. */