GNU Binutils with patches for OS216
Revision | de6784544abc97d5e396cb1e83eda1ae09f63d40 (tree) |
---|---|
Time | 2016-09-22 23:36:37 |
Author | Edjunior Barbosa Machado <emachado@linu...> |
Commiter | Edjunior Barbosa Machado |
Fix build breakage from commit 6ec2b2
I was notified by buildbot that my patch (commit 6ec2b2) has broken the build
on x86_64:
../../binutils-gdb/gdb/rs6000-tdep.c: In function int ppc_process_record_op31(gdbarch*, regcache*, CORE_ADDR, uint32_t):
../../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*)
../../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*)
The patch below should fix it.
gdb/ChangeLog:
2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
* rs6000-tdep.c (ppc_process_record_op31): Fix
regcache_raw_read_unsigned call using the correct parameter type.
@@ -1,3 +1,8 @@ | ||
1 | +2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> | |
2 | + | |
3 | + * rs6000-tdep.c (ppc_process_record_op31): Fix | |
4 | + regcache_raw_read_unsigned call using the correct parameter type. | |
5 | + | |
1 | 6 | 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com> |
2 | 7 | |
3 | 8 | * arc-tdep.c: Fix ARI warning for printf(%p). |
@@ -4700,9 +4700,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache, | ||
4700 | 4700 | |
4701 | 4701 | case 397: /* Store VSX Vector with Length */ |
4702 | 4702 | case 429: /* Store VSX Vector Left-justified with Length */ |
4703 | + ra = 0; | |
4703 | 4704 | if (PPC_RA (insn) != 0) |
4704 | 4705 | regcache_raw_read_unsigned (regcache, |
4705 | - tdep->ppc_gp0_regnum + PPC_RA (insn), &ea); | |
4706 | + tdep->ppc_gp0_regnum + PPC_RA (insn), &ra); | |
4707 | + ea = ra; | |
4706 | 4708 | regcache_raw_read_unsigned (regcache, |
4707 | 4709 | tdep->ppc_gp0_regnum + PPC_RB (insn), &rb); |
4708 | 4710 | /* Store up to 16 bytes. */ |
@@ -4713,9 +4715,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache, | ||
4713 | 4715 | |
4714 | 4716 | case 710: /* Store Word Atomic */ |
4715 | 4717 | case 742: /* Store Doubleword Atomic */ |
4718 | + ra = 0; | |
4716 | 4719 | if (PPC_RA (insn) != 0) |
4717 | 4720 | regcache_raw_read_unsigned (regcache, |
4718 | - tdep->ppc_gp0_regnum + PPC_RA (insn), &ea); | |
4721 | + tdep->ppc_gp0_regnum + PPC_RA (insn), &ra); | |
4722 | + ea = ra; | |
4719 | 4723 | switch (ext) |
4720 | 4724 | { |
4721 | 4725 | case 710: /* Store Word Atomic */ |