This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix failing cooked_read selftest for CSKY.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bea556ab08927862bc2e052d3b93f1d82055d37e

commit bea556ab08927862bc2e052d3b93f1d82055d37e
Author: Hafiz Abid Qadeer <abidh@codesourcery.com>
Date:   Tue Oct 23 23:16:58 2018 +0100

    Fix failing cooked_read selftest for CSKY.
    
    The problem was discussed and approved in
    https://sourceware.org/ml/gdb-patches/2018-10/msg00514.html
    
    2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
    
    	* regcache.c (cooked_read_test): Add CSKY to the list of
    	architectures with a save_reggroup

Diff:
---
 gdb/ChangeLog  | 5 +++++
 gdb/regcache.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5ef217d..ba3bf66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
+
+	* regcache.c (cooked_read_test): Add CSKY to the list of
+	architectures with a save_reggroup
+
 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
 
 	PR gdb/23368
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 38ad7ba..946035a 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1679,7 +1679,7 @@ cooked_read_test (struct gdbarch *gdbarch)
 	      || 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_riscv)
+	      || bfd_arch == bfd_arch_riscv || bfd_arch == bfd_arch_csky)
 	    {
 	      /* Raw registers.  If raw registers are not in save_reggroup,
 		 their status are unknown.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]