I found a couple of spots that could use "require", and one spot where
hoisting the "require" closer to the top of the file made it more
clear.
# skip the rerun test when using gdbserver
# otherwise rerun twice, target should be automatically disabled
load_lib gdbserver-support.exp
-if {![allow_gdbserver_tests]} {
- unsupported "target does not support gdbserver"
- return 0
-}
+require allow_gdbserver_tests
clean_restart $testfile
if ![runto_main] {
return -1
# Support for XML is needed to run this test.
require allow_xml_test
+require can_spawn_for_attach
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
return
}
-require can_spawn_for_attach
-
set string_re {(?:[^\\"]|\\.)*}
set id_re "id=\"$decimal\""