diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-04-29 20:35:34 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-04-29 20:35:34 -0400 |
commit | 759cea5e3f7f141abfc2f31d5039cd7f109edf95 (patch) | |
tree | 90dbb8dcc0a47fb278aa018316d585469ae16a5f /opcodes/lm32-dis.c | |
parent | cb02ab2416c2d83ca053652a21788189f3f7779f (diff) | |
download | gdb-759cea5e3f7f141abfc2f31d5039cd7f109edf95.zip gdb-759cea5e3f7f141abfc2f31d5039cd7f109edf95.tar.gz gdb-759cea5e3f7f141abfc2f31d5039cd7f109edf95.tar.bz2 |
gdb: fix shellcheck warnings SC2166 (&& and !! instead of -a and -o) in gdbarch.sh
Fix all warnings of this type:
In gdbarch.sh line 1238:
if [ "x${invalid_p}" = "x0" -a -n "${postdefault}" ]
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
See the rationale here [1].
[1] https://github.com/koalaman/shellcheck/wiki/SC2166
gdb/ChangeLog:
* gdbarch.sh: Use shell operators && and || instead of
-a and -o.
Diffstat (limited to 'opcodes/lm32-dis.c')
0 files changed, 0 insertions, 0 deletions