aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-async.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-async.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-async.exp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-async.exp b/gdb/testsuite/gdb.mi/mi-async.exp
index e09b68c..79c805b 100644
--- a/gdb/testsuite/gdb.mi/mi-async.exp
+++ b/gdb/testsuite/gdb.mi/mi-async.exp
@@ -17,10 +17,11 @@
# Test asynchronous Machine Interface (MI) responses.
#
-# This currently only works with native linux and the async remote protocol.
-if { !([isnative] && [istarget *-linux*]) \
- && (![target_info exists gdb_protocol] \
- || [target_info gdb_protocol] != "async") } then {
+# Because of the way this test is written, using 'start' and not using
+# mi_run_cmd, it ignores whatever target the rest of GDB testsuite is
+# using, and always tries to run natively. So, don't do anything unless
+# we're actually testing native.
+if { !([isnative] && [istarget *-linux*]) } then {
return
}