Blame SOURCES/gdb-rhbz1870031-p10-prefixed-insn-3of3.patch

405ea9
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
405ea9
From: Keith Seitz <keiths@redhat.com>
405ea9
Date: Thu, 6 May 2021 15:39:45 -0400
405ea9
Subject: gdb-rhbz1870031-p10-prefixed-insn-3of3.patch
405ea9
405ea9
;; Backport "Fix build failure for 32-bit targets with..."
405ea9
;; (Luis Machado, RHBZ 1870031)
405ea9
405ea9
   commit d9d2ef05f11736bf2e889047cc7588d0c0dd907e
405ea9
   Author: Luis Machado <luis.machado@linaro.org>
405ea9
   Date:   Tue Apr 13 09:19:52 2021 -0300
405ea9
405ea9
    Fix build failure for 32-bit targets with --enable-targets=all
405ea9
405ea9
    Replace use of %lx with %s.
405ea9
405ea9
    gdb/ChangeLog:
405ea9
405ea9
    2021-04-13  Luis Machado  <luis.machado@linaro.org>
405ea9
405ea9
            * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
405ea9
            hex values.
405ea9
405ea9
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
405ea9
--- a/gdb/rs6000-tdep.c
405ea9
+++ b/gdb/rs6000-tdep.c
405ea9
@@ -982,9 +982,9 @@ ppc_displaced_step_fixup (struct gdbarch *gdbarch,
405ea9
       if (debug_displaced)
405ea9
 	fprintf_unfiltered (gdb_stdlog,
405ea9
 			    "displaced: {ppc} addpcis target regnum %d was "
405ea9
-			    "0x%lx now 0x%lx",
405ea9
-			    regnum, current_val,
405ea9
-			    current_val + displaced_offset);
405ea9
+			    "%s now %s",
405ea9
+			    regnum, paddress (gdbarch, current_val),
405ea9
+			    paddress (gdbarch, current_val + displaced_offset));
405ea9
       regcache_cooked_write_unsigned (regs, regnum,
405ea9
 					current_val + displaced_offset);
405ea9
       /* point the PC back at the non-displaced instruction.  */