diff options
author | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-10-26 09:37:54 -0300 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-10-26 09:54:04 -0300 |
commit | 71733a7bf696fd54b1c75a2c9c16fd61819c0ddb (patch) | |
tree | dd6c28152f916460d2b65649468a0616d2fab9c5 /gdb/arch/ppc-linux-common.c | |
parent | 3d907528ca584b522125ce4ac818f45dfe7a9a24 (diff) | |
download | gdb-71733a7bf696fd54b1c75a2c9c16fd61819c0ddb.zip gdb-71733a7bf696fd54b1c75a2c9c16fd61819c0ddb.tar.gz gdb-71733a7bf696fd54b1c75a2c9c16fd61819c0ddb.tar.bz2 |
[PowerPC] Fix indentation in arch/ppc-linux-common.c
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.
Diffstat (limited to 'gdb/arch/ppc-linux-common.c')
-rw-r--r-- | gdb/arch/ppc-linux-common.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/arch/ppc-linux-common.c b/gdb/arch/ppc-linux-common.c index 45da105..eb7de40 100644 --- a/gdb/arch/ppc-linux-common.c +++ b/gdb/arch/ppc-linux-common.c @@ -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); |