# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# Execute the tests, using XML support
gdb_exit
-if { ![gdb_skip_xml_test] } {
+if { [allow_xml_test] } {
clean_restart $binfile
do_syscall_tests
}
# Support for XML-output is needed to run this test.
-require !gdb_skip_xml_test
+require allow_xml_test
# Compile test program.
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } {
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Valgrind gdbserver requires gdb with xml support.
-require !gdb_skip_xml_test
+require allow_xml_test
load_lib valgrind.exp
# automatically instead of getting stuck or crashing.
# Valgrind gdbserver requires gdb with xml support.
-require !gdb_skip_xml_test
+require allow_xml_test
load_lib valgrind.exp
# Aborted (core dumped)
# Valgrind gdbserver requires gdb with xml support.
-require !gdb_skip_xml_test
+require allow_xml_test
load_lib valgrind.exp
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Valgrind gdbserver requires gdb with xml support.
-require !gdb_skip_xml_test
+require allow_xml_test
load_lib valgrind.exp
load_lib completion-support.exp
-set do_xml_test [expr ![gdb_skip_xml_test]]
+set do_xml_test [allow_xml_test]
standard_testfile
standard_testfile
# Support for XML is needed to run this test.
-require !gdb_skip_xml_test
+require allow_xml_test
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
}
# Support for XML-output is needed to run this test.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_exit
if [mi_gdb_start] {
return -1
}
-# gdb_skip_xml_test must be called while gdb is not running.
-set do_xml_test [expr ![gdb_skip_xml_test]]
+# allow_xml_test must be called while gdb is not running.
+set do_xml_test [allow_xml_test]
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
#
# 4. Indentation of lines will be preserved so your input file needs
# to follow the expected indentation.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
# Testing for 'maint print xml-tdesc'. Check we can print out the
# current target description and load it back in again.
-require !gdb_skip_xml_test
+require allow_xml_test
standard_testfile
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require !gdb_skip_xml_test
+require allow_xml_test
gdb_start
return 0
}
-# Return true if a test should be skipped due to lack of XML support
-# in the host GDB.
+# Return true if XML support is enabled in the host GDB.
# NOTE: This must be called while gdb is *not* running.
-gdb_caching_proc gdb_skip_xml_test {
+gdb_caching_proc allow_xml_test {
global gdb_spawn_id
global gdb_prompt
global srcdir
if { [info exists gdb_spawn_id] } {
- error "GDB must not be running in gdb_skip_xml_tests."
+ error "GDB must not be running in allow_xml_tests."
}
set xml_file [gdb_remote_download host "${srcdir}/gdb.xml/trivial.xml"]
-re ".*$gdb_prompt $" { }
}
gdb_exit
- return $xml_missing
+ return [expr {!$xml_missing}]
}
# Return true if argv[0] is available.
# multiple target descriptions, GDB doesn't know which target
# description GDBserver uses, and may fail to parse 'g' packet
# after connection.
- if { [gdb_skip_xml_test]
+ if { ![allow_xml_test]
&& ([istarget "arm*-*-linux*"]
|| [istarget "aarch64*-*-linux*"]
|| [istarget "mips*-*-linux*"]