gdb: Add riscv to list of architectures with a save_reggroup

Message ID 20180306193108.7820-1-andrew.burgess@embecosm.com
State New
Headers show
Series
  • gdb: Add riscv to list of architectures with a save_reggroup
Related show

Commit Message

Andrew Burgess March 6, 2018, 7:31 p.m.
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  | 5 +++++
 gdb/regcache.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.14.3

Comments

Yao Qi March 6, 2018, 10:41 p.m. | #1
On Tue, Mar 6, 2018 at 7:31 PM, Andrew Burgess
<andrew.burgess@embecosm.com> wrote:
> 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.


Patch is good to me.

-- 
Yao (齐尧)

Patch

diff --git a/gdb/regcache.c b/gdb/regcache.c
index c73582f66ae..40c58a025c0 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.  */