mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-24 14:53:34 +08:00
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.
This commit is contained in:
parent
6418520e7f
commit
d9d2ef05f1
@ -1,3 +1,8 @@
|
||||
2021-04-13 Luis Machado <luis.machado@linaro.org>
|
||||
|
||||
* rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
|
||||
hex values.
|
||||
|
||||
2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
|
||||
|
||||
* rs6000-tdep.c: Add support for single-stepping of
|
||||
|
@ -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 , ¤t_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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user