summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-01-07 03:31:27 +0000
committerMichael Chastain <mec@google.com>2003-01-07 03:31:27 +0000
commitd8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7 (patch)
tree32559f3391458bcdc6e2340c7b52d4dfaa3f31f4
parente8fa73225f9f55d9fc669f1c7abbec30b7703be9 (diff)
downloadbinutils-gdb-d8b3e9ee2ad510821e83c02b1cf2c3a4c4a7d7e7.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/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.mi/mi-pthreads.exp5
-rw-r--r--gdb/testsuite/gdb.mi/mi1-pthreads.exp5
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"
}
}