Use require with target_info
authorTom Tromey <tom@tromey.com>
Wed, 22 Feb 2023 21:49:47 +0000 (14:49 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 10 Mar 2023 15:21:46 +0000 (08:21 -0700)
commit450d26c851c15e08249fc0fdeb3a06b31ac4fcfd
tree828224a9e444e3e3a0ea672ddb88cad7eb4c5ef6
parent1cd0716eb199963ec63fcafa94699d14bbf45e01
Use require with target_info

This changes many tests to use 'require' when checking target_info.
In a few spots, the require is hoisted to the top of the file, to
avoid doing any extra work when the test is going to be skipped
anyway.
75 files changed:
gdb/testsuite/gdb.base/args.exp
gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
gdb/testsuite/gdb.base/branch-to-self.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-signal-resume.exp
gdb/testsuite/gdb.base/call-strs.exp
gdb/testsuite/gdb.base/callexit.exp
gdb/testsuite/gdb.base/callfuncs.exp
gdb/testsuite/gdb.base/cast-call.exp
gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp
gdb/testsuite/gdb.base/catch-signal-fork.exp
gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
gdb/testsuite/gdb.base/catch-signal.exp
gdb/testsuite/gdb.base/exitsignal.exp
gdb/testsuite/gdb.base/fileio.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/interrupt-daemon-attach.exp
gdb/testsuite/gdb.base/interrupt.exp
gdb/testsuite/gdb.base/kill-after-signal.exp
gdb/testsuite/gdb.base/long-inferior-output.exp
gdb/testsuite/gdb.base/long_long.exp
gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
gdb/testsuite/gdb.base/random-signal.exp
gdb/testsuite/gdb.base/relativedebug.exp
gdb/testsuite/gdb.base/savedregs.exp
gdb/testsuite/gdb.base/sigall.exp
gdb/testsuite/gdb.base/sigaltstack.exp
gdb/testsuite/gdb.base/sigbpt.exp
gdb/testsuite/gdb.base/sigchld.exp
gdb/testsuite/gdb.base/siginfo-addr.exp
gdb/testsuite/gdb.base/siginfo-infcall.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.exp
gdb/testsuite/gdb.base/signest.exp
gdb/testsuite/gdb.base/signull.exp
gdb/testsuite/gdb.base/sigrepeat.exp
gdb/testsuite/gdb.base/sigstep.exp
gdb/testsuite/gdb.base/sigwinch-notty.exp
gdb/testsuite/gdb.base/structs.exp
gdb/testsuite/gdb.base/unwindonsignal.exp
gdb/testsuite/gdb.base/watch-cond-infcall.exp
gdb/testsuite/gdb.cp/gdb2495.exp
gdb/testsuite/gdb.fortran/array-slices.exp
gdb/testsuite/gdb.fortran/lbound-ubound.exp
gdb/testsuite/gdb.gdb/python-helper.exp
gdb/testsuite/gdb.mi/mi-syn-frame.exp
gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
gdb/testsuite/gdb.reverse/sigall-precsave.exp
gdb/testsuite/gdb.reverse/sigall-reverse.exp
gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
gdb/testsuite/gdb.threads/continue-pending-status.exp
gdb/testsuite/gdb.threads/hand-call-in-threads.exp
gdb/testsuite/gdb.threads/interrupted-hand-call.exp
gdb/testsuite/gdb.threads/leader-exit.exp
gdb/testsuite/gdb.threads/manythreads.exp
gdb/testsuite/gdb.threads/multiple-step-overs.exp
gdb/testsuite/gdb.threads/names.exp
gdb/testsuite/gdb.threads/non-stop-fair-events.exp
gdb/testsuite/gdb.threads/pthreads.exp
gdb/testsuite/gdb.threads/schedlock.exp
gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
gdb/testsuite/gdb.threads/signal-sigtrap.exp
gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
gdb/testsuite/gdb.threads/sigthread.exp
gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
gdb/testsuite/gdb.trace/signal.exp
gdb/testsuite/gdb.tui/completion.exp