diff options
author | Michael Chastain <mec@google.com> | 2003-01-07 03:31:27 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-01-07 03:31:27 +0000 |
commit | d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7 (patch) | |
tree | 32559f3391458bcdc6e2340c7b52d4dfaa3f31f4 /gdb/testsuite/gdb.mi | |
parent | e8fa73225f9f55d9fc669f1c7abbec30b7703be9 (diff) | |
download | gdb-d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7.zip gdb-d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7.tar.gz gdb-d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7.tar.bz2 |
2003-01-06 Michael Chastain <mec@shout.net>
* gdb.mi/mi-pthreads.exp (check_mi_thread_command_set):
When selecting a thread, 'line' and 'file' are optional.
* gdb.mi/mi1-pthreads.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-pthreads.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi1-pthreads.exp | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-pthreads.exp b/gdb/testsuite/gdb.mi/mi-pthreads.exp index 170d9a4..f2839c2 100644 --- a/gdb/testsuite/gdb.mi/mi-pthreads.exp +++ b/gdb/testsuite/gdb.mi/mi-pthreads.exp @@ -191,8 +191,11 @@ proc check_mi_thread_command_set {} { "check_mi_thread_command_set: -thread-select 123456789" foreach thread $thread_list { + # line and file are optional. + # many of the threads are blocked in libc calls, + # and many people have libc's with no symbols. mi_gdb_test "-thread-select $thread" \ - "\\^done,new-thread-id=\"$thread\",frame={.*},line=\"(-)?\[0-9\]+\",file=\".*\"" \ + "\\^done,new-thread-id=\"$thread\",frame={.*}(,line=\"(-)?\[0-9\]+\",file=\".*\")?" \ "check_mi_thread_command_set: -thread-select $thread" } } diff --git a/gdb/testsuite/gdb.mi/mi1-pthreads.exp b/gdb/testsuite/gdb.mi/mi1-pthreads.exp index 9c30911..480f057 100644 --- a/gdb/testsuite/gdb.mi/mi1-pthreads.exp +++ b/gdb/testsuite/gdb.mi/mi1-pthreads.exp @@ -191,8 +191,11 @@ proc check_mi_thread_command_set {} { "check_mi_thread_command_set: -thread-select 123456789" foreach thread $thread_list { + # line and file are optional. + # many of the threads are blocked in libc calls, + # and many people have libc's with no symbols. mi_gdb_test "-thread-select $thread" \ - "\\^done,new-thread-id=\"$thread\",frame={.*},line=\"(-)?\[0-9\]+\",file=\".*\"" \ + "\\^done,new-thread-id=\"$thread\",frame={.*}(,line=\"(-)?\[0-9\]+\",file=\".*\")?" \ "check_mi_thread_command_set: -thread-select $thread" } } |