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