Blame SOURCES/gdb-6.6-threads-static-test.patch

f9426a
Index: gdb-7.4.50.20111219/gdb/testsuite/gdb.threads/staticthreads.exp
f9426a
===================================================================
f9426a
--- gdb-7.4.50.20111219.orig/gdb/testsuite/gdb.threads/staticthreads.exp	2011-12-19 21:07:01.436475201 +0100
f9426a
+++ gdb-7.4.50.20111219/gdb/testsuite/gdb.threads/staticthreads.exp	2011-12-19 22:08:55.444514127 +0100
f9426a
@@ -45,6 +45,13 @@ gdb_test_no_output "set print sevenbit-s
f9426a
 # See if the static multi-threaded program runs.
f9426a
 
f9426a
 runto_main
f9426a
+
f9426a
+# See if we get excessive LWP there (patched glibc with unpatched GDB):
f9426a
+# * 2 Thread 135661664 (LWP 3856)  main () at threadloop.c:41
f9426a
+#   1 process 3856  main () at threadloop.c:41
f9426a
+
f9426a
+gdb_test "info threads" "^info threads\r\n\[ \t\]*Id\[ \t\]+Target Id\[ \t\]+Frame\[ \t\]*\r\n\[^\r\n\]* Thread \[^\r\n\]*" "info threads on start"
f9426a
+
f9426a
 gdb_test "break sem_post"
f9426a
 set test "Continue to main's call of sem_post"
f9426a
 gdb_test_multiple "continue" "$test" {