aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-04-13 09:19:52 -0300
committerLuis Machado <luis.machado@linaro.org>2021-04-13 10:49:57 -0300
commitd9d2ef05f11736bf2e889047cc7588d0c0dd907e (patch)
tree8b7a4845cc908965a7442771e12ed771909ccbb2 /gdb/rs6000-tdep.c
parent6418520e7f0c32f940ac974a84c7dae3aa826266 (diff)
downloadgdb-d9d2ef05f11736bf2e889047cc7588d0c0dd907e.zip
gdb-d9d2ef05f11736bf2e889047cc7588d0c0dd907e.tar.gz
gdb-d9d2ef05f11736bf2e889047cc7588d0c0dd907e.tar.bz2
Fix build failure for 32-bit targets with --enable-targets=all
Replace use of %lx with %s. gdb/ChangeLog: 2021-04-13 Luis Machado <luis.machado@linaro.org> * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print hex values.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 2415aae..347014d 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -995,8 +995,10 @@ ppc_displaced_step_fixup (struct gdbarch *gdbarch,
int regnum = (insn & ADDPCIS_TARGET_REGISTER) >> ADDPCIS_INSN_REGSHIFT;
/* Read and update the target value. */
regcache_cooked_read_unsigned (regs, regnum , &current_val);
- displaced_debug_printf ("addpcis target regnum %d was 0x%lx now 0x%lx",
- regnum, current_val, current_val + displaced_offset );
+ displaced_debug_printf ("addpcis target regnum %d was %s now %s",
+ regnum, paddress (gdbarch, current_val),
+ paddress (gdbarch, current_val
+ + displaced_offset));
regcache_cooked_write_unsigned (regs, regnum,
current_val + displaced_offset);
/* point the PC back at the non-displaced instruction. */