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

e1d87d
Index: gdb-7.12.50.20170207/gdb/testsuite/gdb.threads/staticthreads.exp
e1d87d
===================================================================
e1d87d
--- gdb-7.12.50.20170207.orig/gdb/testsuite/gdb.threads/staticthreads.exp	2017-02-26 17:24:48.392316045 +0100
e1d87d
+++ gdb-7.12.50.20170207/gdb/testsuite/gdb.threads/staticthreads.exp	2017-02-26 17:25:38.649677595 +0100
e1d87d
@@ -41,6 +41,13 @@
e1d87d
 # See if the static multi-threaded program runs.
e1d87d
 
e1d87d
 runto_main
e1d87d
+
e1d87d
+# See if we get excessive LWP there (patched glibc with unpatched GDB):
e1d87d
+# * 2 Thread 135661664 (LWP 3856)  main () at threadloop.c:41
e1d87d
+#   1 process 3856  main () at threadloop.c:41
e1d87d
+
e1d87d
+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"
e1d87d
+
e1d87d
 gdb_test "break sem_post"
e1d87d
 set test "continue to main's call of sem_post"
e1d87d
 gdb_test_multiple "continue" "$test" {