File gdb-fix-bnc-994537.diff of Package gdb.3129

BNC #994537:
Fixes testcases gdb.reverse/sigall-precsave.exp and gdb.reverse/sigall-reverse.exp
which failed already with 7.9.1, for ppc64(le).

--- gdb-7.9.1.orig/gdb/rs6000-tdep.c	2016-08-10 10:05:14.236330206 -0400
+++ gdb-7.9.1.orig/gdb/rs6000-tdep.c	2016-08-18 18:16:37.233040934 -0400
@@ -4520,17 +4520,17 @@ 
 
     case 654:		/* Transaction Begin */
     case 686:		/* Transaction End */
-    case 718:		/* Transaction Check */
     case 750:		/* Transaction Suspend or Resume */
     case 782:		/* Transaction Abort Word Conditional */
     case 814:		/* Transaction Abort Doubleword Conditional */
     case 846:		/* Transaction Abort Word Conditional Immediate */
     case 878:		/* Transaction Abort Doubleword Conditional Immediate */
     case 910:		/* Transaction Abort */
-      fprintf_unfiltered (gdb_stdlog, "Cannot record Transaction instructions. "
-			  "%08x at %s, 31-%d.\n",
-			  insn, paddress (gdbarch, addr), ext);
-      return -1;
+      record_full_arch_list_add_reg (regcache, tdep->ppc_ps_regnum);
+      /* FALL-THROUGH */
+    case 718:		/* Transaction Check */
+      record_full_arch_list_add_reg (regcache, tdep->ppc_cr_regnum);
+      return 0;
 
     case 1014:		/* Data Cache Block set to Zero */
       if (target_auxv_search (&current_target, AT_DCACHEBSIZE, &at_dcsz) <= 0
openSUSE Build Service is sponsored by