aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-03-03 22:19:05 +0000
committerDoug Evans <dje@google.com>2010-03-03 22:19:05 +0000
commit24486cb784cfbaa330e2ebac84a628981ce8e99c (patch)
treeeb086be99cd1fec8c4a3130aa64f1b3651b1b1e9
parentb111b805400f957218e75891fd445c02b2980340 (diff)
downloadgdb-24486cb784cfbaa330e2ebac84a628981ce8e99c.zip
gdb-24486cb784cfbaa330e2ebac84a628981ce8e99c.tar.gz
gdb-24486cb784cfbaa330e2ebac84a628981ce8e99c.tar.bz2
* lib/gdb.exp (gdb_compile_pthreads): Handle case where
libc contains libpthread.
-rw-r--r--gdb/testsuite/ChangeLog3
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 963e679..1cc2d2f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2010-03-03 Doug Evans <dje@google.com>
+ * lib/gdb.exp (gdb_compile_pthreads): Handle case where
+ libc contains libpthread.
+
* gdb.threads/linux-dp.c (shared_random): Call rand instead of rand_r.
* gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
of gdb_compile. Add another pattern to match android backtrace.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 8c18f33..fbe0285 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1929,7 +1929,7 @@ proc gdb_compile {source dest type options} {
proc gdb_compile_pthreads {source dest type options} {
set built_binfile 0
set why_msg "unrecognized error"
- foreach lib {-lpthreads -lpthread -lthread} {
+ foreach lib {-lpthreads -lpthread -lthread ""} {
# This kind of wipes out whatever libs the caller may have
# set. Or maybe theirs will override ours. How infelicitous.
set options_with_lib [concat $options [list libs=$lib quiet]]