diff options
author | Michael Chastain <mec.gnu@mindspring.com> | 2003-01-07 03:31:27 +0000 |
---|---|---|
committer | Michael Chastain <mec.gnu@mindspring.com> | 2003-01-07 03:31:27 +0000 |
commit | 0e69a2fa7db25e6f00e6c3ad332b7d511c9b063c (patch) | |
tree | db0c3d19307a18f581a3cf49edf3bb3a3bbbd2d1 | |
parent | 4c87579ae959451bb0c2158941827f9d95f9c734 (diff) | |
download | gdb-0e69a2fa7db25e6f00e6c3ad332b7d511c9b063c.tar.gz |
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-pthreads.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi1-pthreads.exp | 5 |
3 files changed, 14 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 487373d703f..6c95f064cfa 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-01-06 Andreas Schwab <schwab@suse.de> * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite diff --git a/gdb/testsuite/gdb.mi/mi-pthreads.exp b/gdb/testsuite/gdb.mi/mi-pthreads.exp index 170d9a4d89f..f2839c2e0c4 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 9c30911cf9d..480f057b1e0 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" } } |