aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-07 11:48:45 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:57 -0700
commitb963a97fb1cd04beb40a5d69599c74f5da933e78 (patch)
tree982475218abf3946ac7d7c894a1f13dc73c89e6c /gdb/testsuite/lib
parent79749205e72ace5dbec6f797b334c842dab1a45c (diff)
downloadfsf-binutils-gdb-b963a97fb1cd04beb40a5d69599c74f5da933e78.zip
fsf-binutils-gdb-b963a97fb1cd04beb40a5d69599c74f5da933e78.tar.gz
fsf-binutils-gdb-b963a97fb1cd04beb40a5d69599c74f5da933e78.tar.bz2
Rename to allow_xml_test
This changes gdb_skip_xml_test to invert the sense, and renames it to allow_xml_test.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp9
-rw-r--r--gdb/testsuite/lib/gdbserver-support.exp2
2 files changed, 5 insertions, 6 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 64eef97..f293cbb 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -6970,17 +6970,16 @@ proc gdb_skip_bogus_test { msg } {
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"]
@@ -6994,7 +6993,7 @@ gdb_caching_proc gdb_skip_xml_test {
-re ".*$gdb_prompt $" { }
}
gdb_exit
- return $xml_missing
+ return [expr {!$xml_missing}]
}
# Return true if argv[0] is available.
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp
index 91a6bd7..49ae561 100644
--- a/gdb/testsuite/lib/gdbserver-support.exp
+++ b/gdb/testsuite/lib/gdbserver-support.exp
@@ -171,7 +171,7 @@ proc skip_gdbserver_tests { } {
# 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*"]