aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-10-13 12:18:50 +0100
committerPedro Alves <palves@redhat.com>2017-10-13 12:23:32 +0100
commitd7bcd5b8e55c54543389196fd18453db6961e314 (patch)
treeb88c373f7463a99824ed3d348d7a1fb00a5e7606 /gdb/testsuite/gdb.threads
parentdf479dc6e045beb77052f96280798e48ee1feb6c (diff)
downloadgdb-d7bcd5b8e55c54543389196fd18453db6961e314.zip
gdb-d7bcd5b8e55c54543389196fd18453db6961e314.tar.gz
gdb-d7bcd5b8e55c54543389196fd18453db6961e314.tar.bz2
Skip gdb.threads/thread_events.exp on RSP targets properly
Fixes, with --target_board=native-extended-gdbserver: Running ..../src/gdb/testsuite/gdb.threads/thread_events.exp ... FAIL: gdb.threads/thread_events.exp: continue to after_join_func with messages enabled (saw 0, expected 1) gdb/testsuite/ChangeLog: 2017-10-13 Pedro Alves <palves@redhat.com> * gdb.threads/thread_events.exp: Check gdb_protocol instead of is_remote.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/thread_events.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/thread_events.exp b/gdb/testsuite/gdb.threads/thread_events.exp
index d8d19c8..7ccef55 100644
--- a/gdb/testsuite/gdb.threads/thread_events.exp
+++ b/gdb/testsuite/gdb.threads/thread_events.exp
@@ -27,9 +27,10 @@ if ![istarget *-*-linux*] then {
return
}
-# When using gdbserver, even on Linux, we don't get notifications
-# about new threads. This is expected, so don't test for that.
-if [is_remote target] then {
+# When using the RSP, we don't get notifications about new threads.
+# This is expected, so don't test for that.
+if {[target_info gdb_protocol] == "remote"
+ || [target_info gdb_protocol] == "extended-remote"} {
return
}