|
|
ce65b8 |
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
|
ce65b8 |
From: Keith Seitz <keiths@redhat.com>
|
|
|
ce65b8 |
Date: Fri, 11 Jan 2019 17:02:15 -0500
|
|
|
ce65b8 |
Subject: gdb-rhbz1187581-power8-regs-not-in-8-2-07of15.patch
|
|
|
ce65b8 |
|
|
|
ce65b8 |
;; [PowerPC] Fix two if statements in gdb/ppc-linux-nat.c
|
|
|
ce65b8 |
;; Pedro Franco de Carvalho
|
|
|
ce65b8 |
|
|
|
ce65b8 |
[PowerPC] Fix two if statements in gdb/ppc-linux-nat.c
|
|
|
ce65b8 |
|
|
|
ce65b8 |
This patch changes two if statements to else if statements in
|
|
|
ce65b8 |
ppc-linux-nat.c:fetch_register for clarity.
|
|
|
ce65b8 |
|
|
|
ce65b8 |
gdb/ChangeLog:
|
|
|
ce65b8 |
2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
|
|
|
ce65b8 |
|
|
|
ce65b8 |
* ppc-linux-nat.c (fetch_register): Change if statement to else
|
|
|
ce65b8 |
if.
|
|
|
ce65b8 |
(store_register): Likewise.
|
|
|
ce65b8 |
|
|
|
ce65b8 |
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
|
|
|
ce65b8 |
--- a/gdb/ppc-linux-nat.c
|
|
|
ce65b8 |
+++ b/gdb/ppc-linux-nat.c
|
|
|
ce65b8 |
@@ -554,7 +554,7 @@ fetch_register (struct regcache *regcache, int tid, int regno)
|
|
|
ce65b8 |
AltiVec registers, fall through and return zeroes, because
|
|
|
ce65b8 |
regaddr will be -1 in this case. */
|
|
|
ce65b8 |
}
|
|
|
ce65b8 |
- if (vsx_register_p (gdbarch, regno))
|
|
|
ce65b8 |
+ else if (vsx_register_p (gdbarch, regno))
|
|
|
ce65b8 |
{
|
|
|
ce65b8 |
if (have_ptrace_getsetvsxregs)
|
|
|
ce65b8 |
{
|
|
|
ce65b8 |
@@ -933,7 +933,7 @@ store_register (const struct regcache *regcache, int tid, int regno)
|
|
|
ce65b8 |
store_altivec_registers (regcache, tid, regno);
|
|
|
ce65b8 |
return;
|
|
|
ce65b8 |
}
|
|
|
ce65b8 |
- if (vsx_register_p (gdbarch, regno))
|
|
|
ce65b8 |
+ else if (vsx_register_p (gdbarch, regno))
|
|
|
ce65b8 |
{
|
|
|
ce65b8 |
store_vsx_registers (regcache, tid, regno);
|
|
|
ce65b8 |
return;
|