720-debian_static-threads-test.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Update staticthreads.exp to handle debugging info in libpthread.a.
  2. Index: gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp
  3. ===================================================================
  4. --- gdb-6.3.orig/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 10:35:15.000000000 -0500
  5. +++ gdb-6.3/gdb/testsuite/gdb.threads/staticthreads.exp 2004-11-10 11:22:48.671121466 -0500
  6. @@ -53,6 +53,10 @@ gdb_test_multiple "continue" "$test" {
  7. -re " sem_post .*$gdb_prompt " {
  8. pass "$test"
  9. }
  10. + -re " (.*_)sem_post .*$gdb_prompt " {
  11. + # Glibc uses aliases for internal symbols; match __new_sem_post.
  12. + pass "$test"
  13. + }
  14. -re "Program received signal .*$gdb_prompt " {
  15. kfail gdb/1328 "$test"
  16. }
  17. @@ -64,8 +68,16 @@ gdb_test_multiple "continue" "$test" {
  18. rerun_to_main
  19. gdb_test "handle SIG32 nostop noprint pass"
  20. -set test "Handle SIG32 helps"
  21. -gdb_test "continue" " sem_post .*" "handle SIG32 helps"
  22. +set test "handle SIG32 helps"
  23. +gdb_test_multiple "continue" "$test" {
  24. + -re " sem_post .*$gdb_prompt $" {
  25. + pass "$test"
  26. + }
  27. + -re " (.*_)sem_post .*$gdb_prompt $" {
  28. + # Glibc uses aliases for internal symbols; match __new_sem_post.
  29. + pass "$test"
  30. + }
  31. +}
  32. # See if info threads produces anything approaching a thread list.