gdb/testsuite: remove use of then keyword from gdb.base/*.exp
authorAndrew Burgess <aburgess@redhat.com>
Mon, 14 Nov 2022 11:31:04 +0000 (11:31 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 28 Nov 2022 21:04:09 +0000 (21:04 +0000)
commit65a33d75c2667895f067cc5f9079215126cbb2eb
treefdd3f74defa60f3a0cb96123071d49990fd9cfe0
parented7fbdd033a272ff0d7d82c2153d7d0fade80d26
gdb/testsuite: remove use of then keyword from gdb.base/*.exp

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 gdb.base/
test script directory.

There should be no changes in what is tested after this commit.
216 files changed:
gdb/testsuite/gdb.base/a2-run.exp
gdb/testsuite/gdb.base/advance.exp
gdb/testsuite/gdb.base/alias.exp
gdb/testsuite/gdb.base/all-bin.exp
gdb/testsuite/gdb.base/annota-input-while-running.exp
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.base/anon.exp
gdb/testsuite/gdb.base/arithmet.exp
gdb/testsuite/gdb.base/arrayidx.exp
gdb/testsuite/gdb.base/assign.exp
gdb/testsuite/gdb.base/async.exp
gdb/testsuite/gdb.base/attach-wait-input.exp
gdb/testsuite/gdb.base/attach.exp
gdb/testsuite/gdb.base/auto-connect-native-target.exp
gdb/testsuite/gdb.base/auxv.exp
gdb/testsuite/gdb.base/backtrace.exp
gdb/testsuite/gdb.base/bfp-test.exp
gdb/testsuite/gdb.base/bigcore.exp
gdb/testsuite/gdb.base/bitfields2.exp
gdb/testsuite/gdb.base/bp-permanent.exp
gdb/testsuite/gdb.base/break-idempotent.exp
gdb/testsuite/gdb.base/break-unload-file.exp
gdb/testsuite/gdb.base/break.exp
gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
gdb/testsuite/gdb.base/bt-selected-frame.exp
gdb/testsuite/gdb.base/call-ar-st.exp
gdb/testsuite/gdb.base/call-rt-st.exp
gdb/testsuite/gdb.base/call-sc.exp
gdb/testsuite/gdb.base/call-strs.exp
gdb/testsuite/gdb.base/callfuncs.exp
gdb/testsuite/gdb.base/catch-fork-static.exp
gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
gdb/testsuite/gdb.base/catch-syscall.exp
gdb/testsuite/gdb.base/checkpoint.exp
gdb/testsuite/gdb.base/clear_non_user_bp.exp
gdb/testsuite/gdb.base/compare-sections.exp
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/complex-parts.exp
gdb/testsuite/gdb.base/complex.exp
gdb/testsuite/gdb.base/cond-eval-mode.exp
gdb/testsuite/gdb.base/cond-expr.exp
gdb/testsuite/gdb.base/condbreak-call-false.exp
gdb/testsuite/gdb.base/consecutive-step-over.exp
gdb/testsuite/gdb.base/consecutive.exp
gdb/testsuite/gdb.base/constvars.exp
gdb/testsuite/gdb.base/coredump-filter.exp
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/corefile2.exp
gdb/testsuite/gdb.base/ctf-constvars.exp
gdb/testsuite/gdb.base/ctf-ptype.exp
gdb/testsuite/gdb.base/decl-before-def.exp
gdb/testsuite/gdb.base/default.exp
gdb/testsuite/gdb.base/define.exp
gdb/testsuite/gdb.base/dfp-test.exp
gdb/testsuite/gdb.base/disabled-location.exp
gdb/testsuite/gdb.base/display.exp
gdb/testsuite/gdb.base/dprintf-detach.exp
gdb/testsuite/gdb.base/dump.exp
gdb/testsuite/gdb.base/duplicate-bp.exp
gdb/testsuite/gdb.base/eh_return.exp
gdb/testsuite/gdb.base/ena-dis-br.exp
gdb/testsuite/gdb.base/endianity.exp
gdb/testsuite/gdb.base/enum_cond.exp
gdb/testsuite/gdb.base/eval-skip.exp
gdb/testsuite/gdb.base/exe-lock.exp
gdb/testsuite/gdb.base/exec-invalid-sysroot.exp
gdb/testsuite/gdb.base/execl-update-breakpoints.exp
gdb/testsuite/gdb.base/exprs.exp
gdb/testsuite/gdb.base/fileio.exp
gdb/testsuite/gdb.base/finish.exp
gdb/testsuite/gdb.base/fixsection.exp
gdb/testsuite/gdb.base/float.exp
gdb/testsuite/gdb.base/float128.exp
gdb/testsuite/gdb.base/floatn.exp
gdb/testsuite/gdb.base/foll-exec-mode.exp
gdb/testsuite/gdb.base/foll-exec.exp
gdb/testsuite/gdb.base/foll-vfork.exp
gdb/testsuite/gdb.base/fork-running-state.exp
gdb/testsuite/gdb.base/frame-args.exp
gdb/testsuite/gdb.base/frame-info-consistent.exp
gdb/testsuite/gdb.base/frameapply.exp
gdb/testsuite/gdb.base/funcargs.exp
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
gdb/testsuite/gdb.base/gcore.exp
gdb/testsuite/gdb.base/gdb1090.exp
gdb/testsuite/gdb.base/gdb11530.exp
gdb/testsuite/gdb.base/gdb11531.exp
gdb/testsuite/gdb.base/gdb1250.exp
gdb/testsuite/gdb.base/gdb1555.exp
gdb/testsuite/gdb.base/gdb1821.exp
gdb/testsuite/gdb.base/gnu-ifunc.exp
gdb/testsuite/gdb.base/gnu_vector.exp
gdb/testsuite/gdb.base/gold-gdb-index.exp
gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
gdb/testsuite/gdb.base/hbreak2.exp
gdb/testsuite/gdb.base/hook-stop.exp
gdb/testsuite/gdb.base/huge.exp
gdb/testsuite/gdb.base/infcall-input.exp
gdb/testsuite/gdb.base/inferior-args.exp
gdb/testsuite/gdb.base/inferior-died.exp
gdb/testsuite/gdb.base/info-fun.exp
gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
gdb/testsuite/gdb.base/info-os.exp
gdb/testsuite/gdb.base/info-proc.exp
gdb/testsuite/gdb.base/info-program.exp
gdb/testsuite/gdb.base/info_qt.exp
gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
gdb/testsuite/gdb.base/interp.exp
gdb/testsuite/gdb.base/interrupt.exp
gdb/testsuite/gdb.base/jit-reader-exec.exp
gdb/testsuite/gdb.base/jump.exp
gdb/testsuite/gdb.base/label-without-address.exp
gdb/testsuite/gdb.base/langs.exp
gdb/testsuite/gdb.base/large-frame.exp
gdb/testsuite/gdb.base/list-missing-source.exp
gdb/testsuite/gdb.base/list.exp
gdb/testsuite/gdb.base/logical.exp
gdb/testsuite/gdb.base/long-inferior-output.exp
gdb/testsuite/gdb.base/long_long.exp
gdb/testsuite/gdb.base/longjmp.exp
gdb/testsuite/gdb.base/maint-info-sections.exp
gdb/testsuite/gdb.base/maint-print-frame-id.exp
gdb/testsuite/gdb.base/maint.exp
gdb/testsuite/gdb.base/max-value-size.exp
gdb/testsuite/gdb.base/memattr.exp
gdb/testsuite/gdb.base/mips_pro.exp
gdb/testsuite/gdb.base/miscexprs.exp
gdb/testsuite/gdb.base/multi-forks.exp
gdb/testsuite/gdb.base/nodebug.exp
gdb/testsuite/gdb.base/non-lazy-array-index.exp
gdb/testsuite/gdb.base/noreturn-finish.exp
gdb/testsuite/gdb.base/noreturn-return.exp
gdb/testsuite/gdb.base/opaque.exp
gdb/testsuite/gdb.base/overlays.exp
gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
gdb/testsuite/gdb.base/paginate-bg-execution.exp
gdb/testsuite/gdb.base/paginate-inferior-exit.exp
gdb/testsuite/gdb.base/pc-fp.exp
gdb/testsuite/gdb.base/permissions.exp
gdb/testsuite/gdb.base/pie-execl.exp
gdb/testsuite/gdb.base/pointers.exp
gdb/testsuite/gdb.base/pr11022.exp
gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.base/prologue.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/testsuite/gdb.base/quit-live.exp
gdb/testsuite/gdb.base/radix.exp
gdb/testsuite/gdb.base/readnever.exp
gdb/testsuite/gdb.base/recurse.exp
gdb/testsuite/gdb.base/reggroups.exp
gdb/testsuite/gdb.base/relational.exp
gdb/testsuite/gdb.base/remote.exp
gdb/testsuite/gdb.base/return.exp
gdb/testsuite/gdb.base/return2.exp
gdb/testsuite/gdb.base/savedregs.exp
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.base/sect-cmd.exp
gdb/testsuite/gdb.base/sepdebug.exp
gdb/testsuite/gdb.base/set-noassign.exp
gdb/testsuite/gdb.base/setshow.exp
gdb/testsuite/gdb.base/setvar.exp
gdb/testsuite/gdb.base/shlib-call.exp
gdb/testsuite/gdb.base/shreloc.exp
gdb/testsuite/gdb.base/sigall.exp
gdb/testsuite/gdb.base/sigaltstack.exp
gdb/testsuite/gdb.base/sigbpt.exp
gdb/testsuite/gdb.base/siginfo-addr.exp
gdb/testsuite/gdb.base/siginfo-obj.exp
gdb/testsuite/gdb.base/siginfo-thread.exp
gdb/testsuite/gdb.base/siginfo.exp
gdb/testsuite/gdb.base/signals-state-child.exp
gdb/testsuite/gdb.base/signals.exp
gdb/testsuite/gdb.base/signest.exp
gdb/testsuite/gdb.base/signull.exp
gdb/testsuite/gdb.base/sigrepeat.exp
gdb/testsuite/gdb.base/sizeof.exp
gdb/testsuite/gdb.base/so-impl-ld.exp
gdb/testsuite/gdb.base/solib-disc.exp
gdb/testsuite/gdb.base/solib-display.exp
gdb/testsuite/gdb.base/solib-symbol.exp
gdb/testsuite/gdb.base/source-dir.exp
gdb/testsuite/gdb.base/source-execution.exp
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
gdb/testsuite/gdb.base/stack-checking.exp
gdb/testsuite/gdb.base/stack-protector.exp
gdb/testsuite/gdb.base/step-break.exp
gdb/testsuite/gdb.base/step-line.exp
gdb/testsuite/gdb.base/step-over-syscall.exp
gdb/testsuite/gdb.base/step-test.exp
gdb/testsuite/gdb.base/store.exp
gdb/testsuite/gdb.base/structs.exp
gdb/testsuite/gdb.base/structs2.exp
gdb/testsuite/gdb.base/sym-file.exp
gdb/testsuite/gdb.base/symbol-alias.exp
gdb/testsuite/gdb.base/term.exp
gdb/testsuite/gdb.base/twice.exp
gdb/testsuite/gdb.base/type-opaque.exp
gdb/testsuite/gdb.base/until.exp
gdb/testsuite/gdb.base/unwind-on-each-insn.exp
gdb/testsuite/gdb.base/varargs.exp
gdb/testsuite/gdb.base/volatile.exp
gdb/testsuite/gdb.base/watch-cond-infcall.exp
gdb/testsuite/gdb.base/watch-cond.exp
gdb/testsuite/gdb.base/watch-non-mem.exp
gdb/testsuite/gdb.base/watch-read.exp
gdb/testsuite/gdb.base/watch-vfork.exp
gdb/testsuite/gdb.base/watch_thread_num.exp
gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp
gdb/testsuite/gdb.base/watchpoint.exp
gdb/testsuite/gdb.base/wchar.exp
gdb/testsuite/gdb.base/whatis-exp.exp
gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp
gdb/testsuite/gdb.base/whatis.exp