aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-01 22:29:50 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-08 12:33:08 -0400
commit532497fe6f812363e46a8812db0238b94d08c492 (patch)
tree4928820b052b71acc62fc397c13efe845554af97 /sim
parent1227922933da40205537983f1d079b1b3d08a090 (diff)
downloadgdb-532497fe6f812363e46a8812db0238b94d08c492.zip
gdb-532497fe6f812363e46a8812db0238b94d08c492.tar.gz
gdb-532497fe6f812363e46a8812db0238b94d08c492.tar.bz2
sim: cgen: tweak trace format
Fixes build warnings when the address size isn't an integer.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/cgen-trace.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index c17ec96..1c0e44f 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
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 ...
(cgen_mode_names): ... this.
(MODE_NAME): Use cgen_mode_names.
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 649c37a..ea0399f 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