Blame SOURCES/gdb-rhbz1320945-power9-35of38.patch

a094f6
commit de6784544abc97d5e396cb1e83eda1ae09f63d40
a094f6
Author: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
a094f6
Date:   Thu Sep 22 11:33:56 2016 -0300
a094f6
a094f6
    Fix build breakage from commit 6ec2b2
a094f6
    
a094f6
    I was notified by buildbot that my patch (commit 6ec2b2) has broken the build
a094f6
    on x86_64:
a094f6
    
a094f6
    ../../binutils-gdb/gdb/rs6000-tdep.c: In function int ppc_process_record_op31(gdbarch*, regcache*, CORE_ADDR, uint32_t):
a094f6
    ../../binutils-gdb/gdb/rs6000-tdep.c:4705:50: error: cannot convert CORE_ADDR* {aka long unsigned int*} to ULONGEST* {aka long long unsigned int*} for argument 3 to register_status regcache_raw_read_unsigned(regcache*, int, ULONGEST*)
a094f6
             tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);
a094f6
                                                      ^
a094f6
    ../../binutils-gdb/gdb/rs6000-tdep.c:4718:50: error: cannot convert CORE_ADDR* {aka long unsigned int*} to ULONGEST* {aka long long unsigned int*} for argument 3 to register_status regcache_raw_read_unsigned(regcache*, int, ULONGEST*)
a094f6
             tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);
a094f6
                                                      ^
a094f6
    The patch below should fix it.
a094f6
    
a094f6
    gdb/ChangeLog:
a094f6
    2016-09-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
a094f6
    
a094f6
            * rs6000-tdep.c (ppc_process_record_op31): Fix
a094f6
            regcache_raw_read_unsigned call using the correct parameter type.
a094f6
a094f6
### a/gdb/ChangeLog
a094f6
### b/gdb/ChangeLog
a094f6
## -1,3 +1,8 @@
a094f6
+2016-09-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
a094f6
+
a094f6
+	* rs6000-tdep.c (ppc_process_record_op31): Fix
a094f6
+	regcache_raw_read_unsigned call using the correct parameter type.
a094f6
+
a094f6
 2016-09-22  Anton Kolesov  <anton.kolesov@synopsys.com>
a094f6
 
a094f6
 	* arc-tdep.c: Fix ARI warning for printf(%p).
a094f6
--- a/gdb/rs6000-tdep.c
a094f6
+++ b/gdb/rs6000-tdep.c
a094f6
@@ -4700,9 +4700,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
a094f6
 
a094f6
     case 397:		/* Store VSX Vector with Length */
a094f6
     case 429:		/* Store VSX Vector Left-justified with Length */
a094f6
+      ra = 0;
a094f6
       if (PPC_RA (insn) != 0)
a094f6
 	regcache_raw_read_unsigned (regcache,
a094f6
-				    tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);
a094f6
+				    tdep->ppc_gp0_regnum + PPC_RA (insn), &ra);
a094f6
+      ea = ra;
a094f6
       regcache_raw_read_unsigned (regcache,
a094f6
 				  tdep->ppc_gp0_regnum + PPC_RB (insn), &rb);
a094f6
       /* Store up to 16 bytes.  */
a094f6
@@ -4713,9 +4715,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
a094f6
 
a094f6
     case 710:		/* Store Word Atomic */
a094f6
     case 742:		/* Store Doubleword Atomic */
a094f6
+      ra = 0;
a094f6
       if (PPC_RA (insn) != 0)
a094f6
 	regcache_raw_read_unsigned (regcache,
a094f6
-				    tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);
a094f6
+				    tdep->ppc_gp0_regnum + PPC_RA (insn), &ra);
a094f6
+      ea = ra;
a094f6
       switch (ext)
a094f6
 	{
a094f6
 	case 710:	/* Store Word Atomic */