]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix build failure for 32-bit targets with --enable-targets=all
authorLuis Machado <luis.machado@linaro.org>
Tue, 13 Apr 2021 12:19:52 +0000 (09:19 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 13 Apr 2021 13:49:57 +0000 (10:49 -0300)
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.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 5d67a9a968f40c62946a1ec6b4e228a9b0a7b087..d738f550b645118ad0a2334faab177fa7f703677 100644 (file)
@@ -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
index 2415aae342f61553df8a916c19986d4dacf8e0e1..347014d6c2f3a244d66bce9ca8a0ee0f680ca207 100644 (file)
@@ -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.  */