gdb: Add riscv to list of architectures with a save_reggroup
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 6 Mar 2018 16:27:13 +0000 (16:27 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 7 Mar 2018 17:36:37 +0000 (17:36 +0000)
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.

gdb/ChangeLog
gdb/regcache.c

index 8de20e65ed1e6c9625331e0e4c944a0c9f2e015a..928dbab31f9a04a42b203eca83b83abf7e02e490 100644 (file)
@@ -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
index c73582f66ae38f288b9b68d6d054a7f82ac16e60..40c58a025c04cd9b4e537dda2bc89eb69c6cd524 100644 (file)
@@ -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.  */