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