yann@96: Update staticthreads.exp to handle debugging info in libpthread.a. yann@96: yann@96: Index: gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp yann@96: =================================================================== yann@96: --- gdb-6.3.orig/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 10:35:15.000000000 -0500 yann@96: +++ gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 11:22:48.671121466 -0500 yann@96: @@ -53,6 +53,10 @@ gdb_test_multiple "continue" "$test" { yann@96: -re " sem_post .*$gdb_prompt " { yann@96: pass "$test" yann@96: } yann@96: + -re " (.*_)sem_post .*$gdb_prompt " { yann@96: + # Glibc uses aliases for internal symbols; match __new_sem_post. yann@96: + pass "$test" yann@96: + } yann@96: -re "Program received signal .*$gdb_prompt " { yann@96: kfail gdb/1328 "$test" yann@96: } yann@96: @@ -64,8 +68,16 @@ gdb_test_multiple "continue" "$test" { yann@96: yann@96: rerun_to_main yann@96: gdb_test "handle SIG32 nostop noprint pass" yann@96: -set test "Handle SIG32 helps" yann@96: -gdb_test "continue" " sem_post .*" "handle SIG32 helps" yann@96: +set test "handle SIG32 helps" yann@96: +gdb_test_multiple "continue" "$test" { yann@96: + -re " sem_post .*$gdb_prompt $" { yann@96: + pass "$test" yann@96: + } yann@96: + -re " (.*_)sem_post .*$gdb_prompt $" { yann@96: + # Glibc uses aliases for internal symbols; match __new_sem_post. yann@96: + pass "$test" yann@96: + } yann@96: +} yann@96: yann@96: yann@96: # See if info threads produces anything approaching a thread list.