gdb/testsuite: remove use of then keyword from gdb.*/*.exp scripts
authorAndrew Burgess <aburgess@redhat.com>
Mon, 14 Nov 2022 14:31:52 +0000 (14:31 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 28 Nov 2022 21:04:10 +0000 (21:04 +0000)
commitf50c72da4dc7ab67ea244e9c6e97404a04700c2d
tree4578749e362a255867a99829736e24bf543a34b0
parent0216141ac37843192e3525dda4cc3c58810ee195
gdb/testsuite: remove use of then keyword from gdb.*/*.exp scripts

The canonical form of 'if' in modern TCL is 'if {} {}'.  But there's
still a bunch of places in the testsuite where we make use of the
'then' keyword, and sometimes these get copies into new tests, which
just spreads poor practice.

This commit removes all use of the 'then' keyword from the remaining
gdb.*/*.exp scripts.  Previous commits have done the bulk of this
removal, this commit just handles the remaining directories that each
contain a low number of instances.

There should be no changes in what is tested after this commit.
29 files changed:
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.compile/compile-tls.exp
gdb/testsuite/gdb.ctf/funcreturn.exp
gdb/testsuite/gdb.dwarf2/dw2-common-block.exp
gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp
gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
gdb/testsuite/gdb.guile/scm-breakpoint.exp
gdb/testsuite/gdb.mi/list-thread-groups-available.exp
gdb/testsuite/gdb.mi/mi-async.exp
gdb/testsuite/gdb.mi/mi-corefile.exp
gdb/testsuite/gdb.mi/mi-frame-regs.exp
gdb/testsuite/gdb.mi/mi-info-os.exp
gdb/testsuite/gdb.mi/mi-regs.exp
gdb/testsuite/gdb.modula2/max-depth.exp
gdb/testsuite/gdb.modula2/multidim.exp
gdb/testsuite/gdb.modula2/unbounded-array.exp
gdb/testsuite/gdb.opt/break-on-_exit.exp
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
gdb/testsuite/gdb.opt/fortran-string.exp
gdb/testsuite/gdb.opt/solib-intra-step.exp
gdb/testsuite/gdb.pascal/types.exp
gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp
gdb/testsuite/gdb.server/ext-attach.exp
gdb/testsuite/gdb.server/extended-remote-restart.exp
gdb/testsuite/gdb.stabs/exclfwd.exp
gdb/testsuite/gdb.tui/tui-layout.exp
gdb/testsuite/gdb.xml/tdesc-reload.exp