From: Michael Chastain Date: Tue, 7 Jan 2003 03:31:27 +0000 (+0000) Subject: 2003-01-06 Michael Chastain X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7;p=binutils-gdb.git 2003-01-06 Michael Chastain * 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. --- 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 + + * 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 * 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" } }