|
|
2c2fa1 |
Message-ID: <54BB676B.2090101@gmail.com>
|
|
|
2c2fa1 |
Date: Sun, 18 Jan 2015 15:57:31 +0800
|
|
|
2c2fa1 |
From: Wei-cheng Wang <cole945 at gmail dot com>
|
|
|
2c2fa1 |
To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
|
|
|
2c2fa1 |
CC: Ulrich Weigand <uweigand at de dot ibm dot com>, gdb-patches at sourceware dot org, Joel Brobecker <brobecker at adacore dot com>
|
|
|
2c2fa1 |
Subject: Re: Broken build: rs6000-tdep.c: 32-bit host --enable-targets=all --enable-64-bit-bfd [Re: [PATCH 2/3 v4] Process record support for PowerPC]
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
On 2015/1/18 下午 02:59, Jan Kratochvil wrote:
|
|
|
2c2fa1 |
> GDB has paddress(), core_addr_to_string() and hex_string() instead while the
|
|
|
2c2fa1 |
> codebase uses these three interchangeably. But the codebase uses even the
|
|
|
2c2fa1 |
> %lx+long form.
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
Using %s+paddress instead of %lx+long in this patch.
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
Thanks,
|
|
|
2c2fa1 |
Wei-cheng
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
commit 810c102655475827a3174fb64b5e14beaa57ec3f
|
|
|
2c2fa1 |
Author: Wei-cheng Wang <cole945@gmail.com>
|
|
|
2c2fa1 |
Date: Sun Jan 18 15:20:46 2015 +0800
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
Fix format warning in rs6000t-dep.c
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
Index: gdb-7.6.1/gdb/rs6000-tdep.c
|
|
|
2c2fa1 |
===================================================================
|
|
|
2c2fa1 |
--- gdb-7.6.1.orig/gdb/rs6000-tdep.c
|
|
|
2c2fa1 |
+++ gdb-7.6.1/gdb/rs6000-tdep.c
|
|
|
2c2fa1 |
@@ -3405,7 +3405,6 @@ rs6000_epilogue_frame_cache (struct fram
|
|
|
2c2fa1 |
struct rs6000_frame_cache *cache;
|
|
|
2c2fa1 |
struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
|
|
2c2fa1 |
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
|
|
|
2c2fa1 |
- CORE_ADDR sp;
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
if (*this_cache)
|
|
|
2c2fa1 |
return *this_cache;
|
|
|
2c2fa1 |
@@ -4006,8 +4005,8 @@ ppc_process_record_op4 (struct gdbarch *
|
|
|
2c2fa1 |
return 0;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 4-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 4-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -4049,8 +4048,8 @@ ppc_process_record_op19 (struct gdbarch
|
|
|
2c2fa1 |
return 0;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 19-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 19-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -4507,7 +4506,8 @@ ppc_process_record_op31 (struct gdbarch
|
|
|
2c2fa1 |
case 878: /* Transaction Abort Doubleword Conditional Immediate */
|
|
|
2c2fa1 |
case 910: /* Transaction Abort */
|
|
|
2c2fa1 |
fprintf_unfiltered (gdb_stdlog, "Cannot record Transaction instructions. "
|
|
|
2c2fa1 |
- "%08x at %08lx, 31-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ "%08x at %s, 31-%d.\n",
|
|
|
2c2fa1 |
+ insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
case 1014: /* Data Cache Block set to Zero */
|
|
|
2c2fa1 |
@@ -4526,8 +4526,8 @@ ppc_process_record_op31 (struct gdbarch
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
UNKNOWN_OP:
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 31-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 31-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -4618,8 +4618,8 @@ ppc_process_record_op59 (struct gdbarch
|
|
|
2c2fa1 |
return 0;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 59-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 59-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -4631,7 +4631,6 @@ ppc_process_record_op60 (struct gdbarch
|
|
|
2c2fa1 |
{
|
|
|
2c2fa1 |
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
|
|
|
2c2fa1 |
int ext = PPC_EXTOP (insn);
|
|
|
2c2fa1 |
- int tmp;
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
switch (ext >> 2)
|
|
|
2c2fa1 |
{
|
|
|
2c2fa1 |
@@ -4901,8 +4900,8 @@ ppc_process_record_op60 (struct gdbarch
|
|
|
2c2fa1 |
return 0;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 60-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 60-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -5067,8 +5066,8 @@ ppc_process_record_op63 (struct gdbarch
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, 59-%d.\n", insn, addr, ext);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, 59-%d.\n", insn, paddress (gdbarch, addr), ext);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
@@ -5347,8 +5346,8 @@ ppc_process_record (struct gdbarch *gdba
|
|
|
2c2fa1 |
|
|
|
2c2fa1 |
default:
|
|
|
2c2fa1 |
UNKNOWN_OP:
|
|
|
2c2fa1 |
- fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record "
|
|
|
2c2fa1 |
- "%08x at %08lx, %d.\n", insn, addr, op6);
|
|
|
2c2fa1 |
+ fprintf_unfiltered (gdb_stdlog, "Warning: Don't know how to record %08x "
|
|
|
2c2fa1 |
+ "at %s, %d.\n", insn, paddress (gdbarch, addr), op6);
|
|
|
2c2fa1 |
return -1;
|
|
|
2c2fa1 |
}
|
|
|
2c2fa1 |
|