2003-01-06 Michael Chastain <mec@shout.net>
authorMichael Chastain <mec@google.com>
Tue, 7 Jan 2003 03:31:27 +0000 (03:31 +0000)
committerMichael Chastain <mec@google.com>
Tue, 7 Jan 2003 03:31:27 +0000 (03:31 +0000)
* 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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-pthreads.exp
gdb/testsuite/gdb.mi/mi1-pthreads.exp

index 487373d703f236d60e1d5ae7dabe92888ed3e44d..6c95f064cfaabf8be22b4f5ddc5a249d96a05fe4 100644 (file)
@@ -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
index 170d9a4d89ffcf7d138525cc025f0ef331b05313..f2839c2e0c4eeeb2969a8ed74e4b675703c912b8 100644 (file)
@@ -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"
   }
 }
index 9c30911cf9d1b1499823fe1ae9666457a96deb55..480f057b1e0e77a5c8f2fca005c68e1bc3086c6e 100644 (file)
@@ -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"
   }
 }