gdb/testsuite: remove use of then keyword from library files
authorAndrew Burgess <aburgess@redhat.com>
Mon, 14 Nov 2022 14:45:05 +0000 (14:45 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 28 Nov 2022 21:04:10 +0000 (21:04 +0000)
commitd4c4542312ca16fe83c8dc8d8acce4667aa7992c
treeeccc8cb7c83345f424089a039f772ca200679442
parentf50c72da4dc7ab67ea244e9c6e97404a04700c2d
gdb/testsuite: remove use of then keyword from library files

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 testsuite
library files (in boards/, config/, and lib/).  Previous commits have
removed all uses of the 'then' keyword from the test script files,
this commit just cleans up the library files.

There should be no changes in what is tested after this commit.
gdb/testsuite/boards/native-extended-gdbserver.exp
gdb/testsuite/config/sid.exp
gdb/testsuite/config/sim.exp
gdb/testsuite/config/slite.exp
gdb/testsuite/lib/cp-support.exp
gdb/testsuite/lib/dwarf.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/mi-support.exp
gdb/testsuite/lib/prompt.exp
gdb/testsuite/lib/selftest-support.exp
gdb/testsuite/lib/trace-support.exp