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

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