diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 15:01:28 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 15:01:28 -0400 |
commit | 01add95bed9afd5e7815439c3967db976be53f80 (patch) | |
tree | a0239dcf29375bf6e4382d419d17117b1665d8ab /gdbserver | |
parent | 055c879fcf242e43a6ef8190f83905109922da93 (diff) | |
download | fsf-binutils-gdb-01add95bed9afd5e7815439c3967db976be53f80.zip fsf-binutils-gdb-01add95bed9afd5e7815439c3967db976be53f80.tar.gz fsf-binutils-gdb-01add95bed9afd5e7815439c3967db976be53f80.tar.bz2 |
gdb: fix some indentation issues
I wrote a small script to spot a pattern of indentation mistakes I saw
happened in breakpoint.c. And while at it I ran it on all files and
fixed what I found. No behavior changes intended, just indentation and
addition / removal of curly braces.
gdb/ChangeLog:
* Fix some indentation mistakes throughout.
gdbserver/ChangeLog:
* Fix some indentation mistakes throughout.
Change-Id: Ia01990c26c38e83a243d8f33da1d494f16315c6e
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdbserver/linux-s390-low.cc | 36 |
2 files changed, 19 insertions, 21 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 79c60b0..f8d7fd6 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2021-05-27 Simon Marchi <simon.marchi@polymtl.ca> + + * Fix some indentation mistakes throughout. + 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com> * .dir-locals.el: Set sentence-end-double-space for all modes, and diff --git a/gdbserver/linux-s390-low.cc b/gdbserver/linux-s390-low.cc index 09a9662..b66808e 100644 --- a/gdbserver/linux-s390-low.cc +++ b/gdbserver/linux-s390-low.cc @@ -1908,15 +1908,13 @@ s390_emit_const (LONGEST num) 0x98, 0x23, 0x10, 0x00, /* lm %r2, %r3, 0(%r1) */ }; if (num < 0x8000 && num >= 0) - { add_insns (buf_s, sizeof buf_s); - } else - { - s390_emit_litpool (8); - add_insns ((unsigned char *) &n, sizeof n); - add_insns (buf_l, sizeof buf_l); - } + { + s390_emit_litpool (8); + add_insns ((unsigned char *) &n, sizeof n); + add_insns (buf_l, sizeof buf_l); + } } /* The "emit_call" emit_ops method for s390. */ @@ -2027,15 +2025,13 @@ s390_emit_set_r2 (int arg1) 0x58, 0x20, 0x10, 0x00, /* l %r2, 0(%r1) */ }; if (arg1 < 0x8000 && arg1 >= -0x8000) - { add_insns (buf_s, sizeof buf_s); - } else - { - s390_emit_litpool (4); - add_insns ((unsigned char *) &arg1, sizeof arg1); - add_insns (buf_l, sizeof buf_l); - } + { + s390_emit_litpool (4); + add_insns ((unsigned char *) &arg1, sizeof arg1); + add_insns (buf_l, sizeof buf_l); + } } /* The "emit_int_call_1" emit_ops method for s390. */ @@ -2553,15 +2549,13 @@ s390x_emit_const (LONGEST num) 0xe3, 0x20, 0x10, 0x00, 0x00, 0x04, /* lg %r2, 0(%r1) */ }; if (num < 0x8000 && num >= -0x8000) - { add_insns (buf_s, sizeof buf_s); - } else - { - s390_emit_litpool (8); - add_insns ((unsigned char *) &n, sizeof n); - add_insns (buf_l, sizeof buf_l); - } + { + s390_emit_litpool (8); + add_insns ((unsigned char *) &n, sizeof n); + add_insns (buf_l, sizeof buf_l); + } } /* The "emit_call" emit_ops method for s390x. */ |