Blame SOURCES/gdb-rhbz1187581-power8-regs-not-in-8-2-08of15.patch

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-08of15.patch
ce65b8
ce65b8
;; [PowerPC] Fix indentation in arch/ppc-linux-common.c
ce65b8
;; Pedro Franco de Carvalho
ce65b8
ce65b8
    [PowerPC] Fix indentation in arch/ppc-linux-common.c
ce65b8
ce65b8
    This patch parenthesizes the tdesc selection expressions in
ce65b8
    arch/ppc-linux-common.c so that they can be tab-indented.
ce65b8
ce65b8
    gdb/ChangeLog:
ce65b8
    2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
ce65b8
ce65b8
        * arch/ppc-linux-common.c (ppc_linux_match_description):
ce65b8
        Parenthesize tdesc assignements and indent them properly.
ce65b8
ce65b8
diff --git a/gdb/arch/ppc-linux-common.c b/gdb/arch/ppc-linux-common.c
ce65b8
--- a/gdb/arch/ppc-linux-common.c
ce65b8
+++ b/gdb/arch/ppc-linux-common.c
ce65b8
@@ -53,14 +53,14 @@ ppc_linux_match_description (struct ppc_linux_features features)
ce65b8
       if (features.cell)
ce65b8
 	tdesc = tdesc_powerpc_cell64l;
ce65b8
       else if (features.vsx)
ce65b8
-	tdesc = features.isa205
ce65b8
-	  ? tdesc_powerpc_isa205_vsx64l : tdesc_powerpc_vsx64l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_vsx64l
ce65b8
+		 : tdesc_powerpc_vsx64l);
ce65b8
       else if (features.altivec)
ce65b8
-	tdesc = features.isa205
ce65b8
-	  ? tdesc_powerpc_isa205_altivec64l : tdesc_powerpc_altivec64l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_altivec64l
ce65b8
+		 : tdesc_powerpc_altivec64l);
ce65b8
       else
ce65b8
-	tdesc = features.isa205?
ce65b8
-	  tdesc_powerpc_isa205_64l : tdesc_powerpc_64l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_64l
ce65b8
+		 : tdesc_powerpc_64l);
ce65b8
     }
ce65b8
   else
ce65b8
     {
ce65b8
@@ -69,14 +69,14 @@ ppc_linux_match_description (struct ppc_linux_features features)
ce65b8
       if (features.cell)
ce65b8
 	tdesc = tdesc_powerpc_cell32l;
ce65b8
       else if (features.vsx)
ce65b8
-	tdesc = features.isa205
ce65b8
-	  ? tdesc_powerpc_isa205_vsx32l : tdesc_powerpc_vsx32l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_vsx32l
ce65b8
+		 : tdesc_powerpc_vsx32l);
ce65b8
       else if (features.altivec)
ce65b8
-	tdesc = features.isa205
ce65b8
-	  ? tdesc_powerpc_isa205_altivec32l : tdesc_powerpc_altivec32l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_altivec32l
ce65b8
+		 : tdesc_powerpc_altivec32l);
ce65b8
       else
ce65b8
-	tdesc = features.isa205
ce65b8
-	  ? tdesc_powerpc_isa205_32l : tdesc_powerpc_32l;
ce65b8
+	tdesc = (features.isa205? tdesc_powerpc_isa205_32l
ce65b8
+		 : tdesc_powerpc_32l);
ce65b8
     }
ce65b8
 
ce65b8
   gdb_assert (tdesc != NULL);