• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionde6784544abc97d5e396cb1e83eda1ae09f63d40 (tree)
Time2016-09-22 23:36:37
AuthorEdjunior Barbosa Machado <emachado@linu...>
CommiterEdjunior Barbosa Machado

Log Message

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*)

tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);

../../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*)

tdep->ppc_gp0_regnum + PPC_RA (insn), &ea);

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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
16 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
27
38 * arc-tdep.c: Fix ARI warning for printf(%p).
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -4700,9 +4700,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
47004700
47014701 case 397: /* Store VSX Vector with Length */
47024702 case 429: /* Store VSX Vector Left-justified with Length */
4703+ ra = 0;
47034704 if (PPC_RA (insn) != 0)
47044705 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;
47064708 regcache_raw_read_unsigned (regcache,
47074709 tdep->ppc_gp0_regnum + PPC_RB (insn), &rb);
47084710 /* Store up to 16 bytes. */
@@ -4713,9 +4715,11 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
47134715
47144716 case 710: /* Store Word Atomic */
47154717 case 742: /* Store Doubleword Atomic */
4718+ ra = 0;
47164719 if (PPC_RA (insn) != 0)
47174720 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;
47194723 switch (ext)
47204724 {
47214725 case 710: /* Store Word Atomic */