mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-21 15:33:33 +08:00
* lib/gdb.exp (gdb_compile_pthreads): Handle case where
libc contains libpthread.
This commit is contained in:
parent
b111b80540
commit
24486cb784
@ -1,5 +1,8 @@
|
|||||||
2010-03-03 Doug Evans <dje@google.com>
|
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.c (shared_random): Call rand instead of rand_r.
|
||||||
* gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
|
* gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
|
||||||
of gdb_compile. Add another pattern to match android backtrace.
|
of gdb_compile. Add another pattern to match android backtrace.
|
||||||
|
@ -1929,7 +1929,7 @@ proc gdb_compile {source dest type options} {
|
|||||||
proc gdb_compile_pthreads {source dest type options} {
|
proc gdb_compile_pthreads {source dest type options} {
|
||||||
set built_binfile 0
|
set built_binfile 0
|
||||||
set why_msg "unrecognized error"
|
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
|
# This kind of wipes out whatever libs the caller may have
|
||||||
# set. Or maybe theirs will override ours. How infelicitous.
|
# set. Or maybe theirs will override ours. How infelicitous.
|
||||||
set options_with_lib [concat $options [list libs=$lib quiet]]
|
set options_with_lib [concat $options [list libs=$lib quiet]]
|
||||||
|
Loading…
Reference in New Issue
Block a user