aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-27 17:40:06 +0200
committerTom de Vries <tdevries@suse.de>2023-03-27 17:40:06 +0200
commitb0af93ad2ba7db505e5967aeebe37f88b17e44cf (patch)
treeb877eb2e5efee114eb380ee783fde48696280f71
parent72a8f763233c11052b8b7eee5d2d8fb23e118c97 (diff)
downloadgdb-b0af93ad2ba7db505e5967aeebe37f88b17e44cf.zip
gdb-b0af93ad2ba7db505e5967aeebe37f88b17e44cf.tar.gz
gdb-b0af93ad2ba7db505e5967aeebe37f88b17e44cf.tar.bz2
[gdb/testsuite] Skip do_self_tests on remote host
In do_self_tests we try to find out the location of the gdb to debug, which will then be copied and renamed to xgdb. In principle, the host board specifies the location of GDB, on host. With remote host, we could upload that gdb from host to build/target, but we would miss the data directory (which is listed as the reason to skip do_self_tests for remote target). We could fix that by instead taking the gdb from build instead, but that wouldn't work with installed testing. It seems easier to just skip this on remote host. It could be made to work for the "[is_remote host] && [is_remote target] && host == target" scenario (see board local-remote-host-native.exp), but that doesn't seem worth the effort. Tested on x86_64-linux.
-rw-r--r--gdb/testsuite/lib/selftest-support.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp
index 61379f5..1e7a2ce 100644
--- a/gdb/testsuite/lib/selftest-support.exp
+++ b/gdb/testsuite/lib/selftest-support.exp
@@ -100,7 +100,7 @@ proc do_self_tests {function body} {
# Are we testing with a remote board? In that case, the target
# won't have access to the GDB's auxilliary data files
# (data-directory, etc.). It's simpler to just skip.
- if [is_remote target] {
+ if { [is_remote target] || [is_remote host] } {
return
}