[binutils-gdb] sim: cgen: tweak trace format
Michael Frysinger
vapier@sourceware.org
Sat May 8 16:33:37 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=532497fe6f812363e46a8812db0238b94d08c492
commit 532497fe6f812363e46a8812db0238b94d08c492
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat May 1 22:29:50 2021 -0400
sim: cgen: tweak trace format
Fixes build warnings when the address size isn't an integer.
Diff:
---
sim/common/ChangeLog | 4 ++++
sim/common/cgen-trace.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index c17ec96587d..1c0e44f2c1d 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-08 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
+
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-types.h (mode_names): Rename to ...
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 649c37a61b1..ea0399fdb6e 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -384,7 +384,7 @@ sim_cgen_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
if (length != insn_length)
{
- sim_io_error (sd, "unable to read address %x", pc);
+ sim_io_error (sd, "unable to read address %" PRIxTA, pc);
}
/* If the entire insn will fit into an integer, then do it. Otherwise, just
More information about the Gdb-cvs
mailing list