diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-01-30 18:43:05 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-01-30 18:43:05 +0000 |
commit | 592375cda9444b66538fb4811db6094e37664847 (patch) | |
tree | 5e11b34b8f122f299a9ba1b7ac6595f3d7d631ee /gdb/testsuite | |
parent | 41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9e636b9..3b3735c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> + * lib/mi-support.exp (et_mi_thread_list) + (check_mi_and_console_threads): Adjust for current thread in + -thread-list-ids output. + +2009-01-30 Vladimir Prus <vladimir@codesourcery.com> + * gdb.mi/mi-break.exp (test_disabled_creation): New. Call it. 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)]} { |