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

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