aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2018-03-22 10:02:18 +0100
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2018-03-22 10:02:18 +0100
commitf69c5afb18871a773af88484a24d7da12c3a104c (patch)
tree4bcfe718e81ae919fadfef9438b1c76244c569bb /gdb/gdbserver
parent32546502f3f43083adbe35b005a71d2c3bd42e55 (diff)
downloadgdb-f69c5afb18871a773af88484a24d7da12c3a104c.zip
gdb-f69c5afb18871a773af88484a24d7da12c3a104c.tar.gz
gdb-f69c5afb18871a773af88484a24d7da12c3a104c.tar.bz2
S390: Correct brace style in s390_get_wordsize
This corrects bad formatting in the newly introduced function s390_get_wordsize. gdb/gdbserver/ChangeLog: * linux-s390-low.c (s390_get_wordsize): Correct brace style.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-s390-low.c9
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 737457d..bd3e6a0 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * linux-s390-low.c (s390_get_wordsize): Correct brace style.
+
2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
* linux-s390-ipa.c (get_ipa_tdesc): Add handling for
diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c
index cc219e2..fff839b 100644
--- a/gdb/gdbserver/linux-s390-low.c
+++ b/gdb/gdbserver/linux-s390-low.c
@@ -507,10 +507,11 @@ s390_get_wordsize (int pid)
PTRACE_XFER_TYPE pswm = ptrace (PTRACE_PEEKUSER, pid,
(PTRACE_TYPE_ARG3) 0,
(PTRACE_TYPE_ARG4) 0);
- if (errno != 0) {
- warning (_("Couldn't determine word size, assuming 64-bit.\n"));
- return 8;
- }
+ if (errno != 0)
+ {
+ warning (_("Couldn't determine word size, assuming 64-bit.\n"));
+ return 8;
+ }
/* Derive word size from extended addressing mode (PSW bit 31). */
return pswm & (1L << 32) ? 8 : 4;
}