aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:43:05 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:43:05 +0000
commit592375cda9444b66538fb4811db6094e37664847 (patch)
tree5e11b34b8f122f299a9ba1b7ac6595f3d7d631ee /gdb/testsuite/lib
parent41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67 (diff)
downloadgdb-592375cda9444b66538fb4811db6094e37664847.zip
gdb-592375cda9444b66538fb4811db6094e37664847.tar.gz
gdb-592375cda9444b66538fb4811db6094e37664847.tar.bz2
PR 8145.
* thread.c (do_captured_list_thread_ids): Report the current thread id.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 7822e66..a85e373 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -1605,7 +1605,7 @@ proc get_mi_thread_list {name} {
# ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N"
# (gdb)
mi_gdb_test "-thread-list-ids" \
- {.*\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \
+ {.*\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},current-thread-id="[0-9]+",number-of-threads="[0-9]+"} \
"-thread_list_ids ($name)"
set output {}
@@ -1639,7 +1639,7 @@ proc check_mi_and_console_threads {name} {
global expect_out
mi_gdb_test "-thread-list-ids" \
- {.*\^done,thread-ids={(thread-id="[0-9]+"(,)*)+},number-of-threads="[0-9]+"} \
+ {.*\^done,thread-ids={(thread-id="[0-9]+"(,)*)+},current-thread-id="[0-9]+",number-of-threads="[0-9]+"} \
"-thread-list-ids ($name)"
set mi_output {}
if {[info exists expect_out(buffer)]} {