From: Doug Evans Date: Wed, 3 Mar 2010 22:19:05 +0000 (+0000) Subject: * lib/gdb.exp (gdb_compile_pthreads): Handle case where X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24486cb784cfbaa330e2ebac84a628981ce8e99c;p=binutils-gdb.git * lib/gdb.exp (gdb_compile_pthreads): Handle case where libc contains libpthread. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 963e679c378..1cc2d2fd78f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2010-03-03 Doug Evans + * 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 8c18f331e16..fbe028548fb 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]]