Blame SOURCES/gdb-rhbz1187581-power8-regs-not-in-8.2-07of15.patch

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