aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-pthreads.exp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-11-17 16:43:34 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-11-17 16:43:34 +0000
commit66bb093b5faddd76e3e307ce59024ac703e8b892 (patch)
tree4bcb5c077f25e10f7998756e24d2c2ff74891dd8 /gdb/testsuite/gdb.mi/mi-pthreads.exp
parent8dd4f202ecf146ae7746e10277ddebedc43f42d4 (diff)
downloadgdb-66bb093b5faddd76e3e307ce59024ac703e8b892.zip
gdb-66bb093b5faddd76e3e307ce59024ac703e8b892.tar.gz
gdb-66bb093b5faddd76e3e307ce59024ac703e8b892.tar.bz2
Implement =thread-selected notification.
* mi/mi-common.h (struct mi_interp): New, moved from ... * mi/mi-interp.c: ...here. * mi/mi-main.c (mi_execute_command): If the thread changed as result of command, report that.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-pthreads.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-pthreads.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-pthreads.exp b/gdb/testsuite/gdb.mi/mi-pthreads.exp
index dbb3ece..0ab5715 100644
--- a/gdb/testsuite/gdb.mi/mi-pthreads.exp
+++ b/gdb/testsuite/gdb.mi/mi-pthreads.exp
@@ -55,6 +55,12 @@ proc check_mi_thread_command_set {} {
"\\^done,new-thread-id=\"$thread\",frame={.*}(,line=\"(-)?\[0-9\]+\",file=\".*\")?" \
"check_mi_thread_command_set: -thread-select $thread"
}
+
+ foreach thread $thread_list {
+ mi_gdb_test "-interpreter-exec console \"thread $thread\"" \
+ ".*\\^done\r\n=thread-selected,id=\"$thread\"" \
+ "check =thread-selected: thread $thread"
+ }
}
#