1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gdb/6.3/720-debian_static-threads-test.patch Fri Jun 01 16:50:29 2007 +0000
1.3 @@ -0,0 +1,36 @@
1.4 +Update staticthreads.exp to handle debugging info in libpthread.a.
1.5 +
1.6 +Index: gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp
1.7 +===================================================================
1.8 +--- gdb-6.3.orig/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 10:35:15.000000000 -0500
1.9 ++++ gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 11:22:48.671121466 -0500
1.10 +@@ -53,6 +53,10 @@ gdb_test_multiple "continue" "$test" {
1.11 + -re " sem_post .*$gdb_prompt " {
1.12 + pass "$test"
1.13 + }
1.14 ++ -re " (.*_)sem_post .*$gdb_prompt " {
1.15 ++ # Glibc uses aliases for internal symbols; match __new_sem_post.
1.16 ++ pass "$test"
1.17 ++ }
1.18 + -re "Program received signal .*$gdb_prompt " {
1.19 + kfail gdb/1328 "$test"
1.20 + }
1.21 +@@ -64,8 +68,16 @@ gdb_test_multiple "continue" "$test" {
1.22 +
1.23 + rerun_to_main
1.24 + gdb_test "handle SIG32 nostop noprint pass"
1.25 +-set test "Handle SIG32 helps"
1.26 +-gdb_test "continue" " sem_post .*" "handle SIG32 helps"
1.27 ++set test "handle SIG32 helps"
1.28 ++gdb_test_multiple "continue" "$test" {
1.29 ++ -re " sem_post .*$gdb_prompt $" {
1.30 ++ pass "$test"
1.31 ++ }
1.32 ++ -re " (.*_)sem_post .*$gdb_prompt $" {
1.33 ++ # Glibc uses aliases for internal symbols; match __new_sem_post.
1.34 ++ pass "$test"
1.35 ++ }
1.36 ++}
1.37 +
1.38 +
1.39 + # See if info threads produces anything approaching a thread list.