[PowerPC] Fix indentation in arch/ppc-linux-common.c
authorPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Fri, 26 Oct 2018 12:37:54 +0000 (09:37 -0300)
committerPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Fri, 26 Oct 2018 12:54:04 +0000 (09:54 -0300)
This patch parenthesizes the tdesc selection expressions in
arch/ppc-linux-common.c so that they can be tab-indented.

gdb/ChangeLog:
2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>

* arch/ppc-linux-common.c (ppc_linux_match_description):
Parenthesize tdesc assignements and indent them properly.

gdb/ChangeLog
gdb/arch/ppc-linux-common.c

index b6025a3fa1a118ac63e4bb6a7a17337b6f53f2ea..3b299758b1630e4498d780025a601da5c8597457 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * arch/ppc-linux-common.c (ppc_linux_match_description):
+       Parenthesize tdesc assignements and indent them properly.
+
 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * ppc-linux-nat.c (fetch_register): Change if statement to else
index 45da105de648acd9bb52be1cfdf38918171a0c3f..eb7de40af095f1d3cfa69c0a5448348f555d2b7b 100644 (file)
@@ -53,14 +53,14 @@ ppc_linux_match_description (struct ppc_linux_features features)
       if (features.cell)
        tdesc = tdesc_powerpc_cell64l;
       else if (features.vsx)
-       tdesc = features.isa205
-         ? tdesc_powerpc_isa205_vsx64l : tdesc_powerpc_vsx64l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_vsx64l
+                : tdesc_powerpc_vsx64l);
       else if (features.altivec)
-       tdesc = features.isa205
-         ? tdesc_powerpc_isa205_altivec64l : tdesc_powerpc_altivec64l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_altivec64l
+                : tdesc_powerpc_altivec64l);
       else
-       tdesc = features.isa205?
-         tdesc_powerpc_isa205_64l : tdesc_powerpc_64l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_64l
+                : tdesc_powerpc_64l);
     }
   else
     {
@@ -69,14 +69,14 @@ ppc_linux_match_description (struct ppc_linux_features features)
       if (features.cell)
        tdesc = tdesc_powerpc_cell32l;
       else if (features.vsx)
-       tdesc = features.isa205
-         ? tdesc_powerpc_isa205_vsx32l : tdesc_powerpc_vsx32l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_vsx32l
+                : tdesc_powerpc_vsx32l);
       else if (features.altivec)
-       tdesc = features.isa205
-         ? tdesc_powerpc_isa205_altivec32l : tdesc_powerpc_altivec32l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_altivec32l
+                : tdesc_powerpc_altivec32l);
       else
-       tdesc = features.isa205
-         ? tdesc_powerpc_isa205_32l : tdesc_powerpc_32l;
+       tdesc = (features.isa205? tdesc_powerpc_isa205_32l
+                : tdesc_powerpc_32l);
     }
 
   gdb_assert (tdesc != NULL);