aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.multi
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-11-22 16:50:53 +0000
committerYao Qi <yao.qi@linaro.org>2017-11-22 16:50:53 +0000
commit1daad298d699383bb4f35aa919a1acfa0ab8e16c (patch)
tree1b4a55e093e18d5c0b39b70272a54715d729f2be /gdb/testsuite/gdb.multi
parent88465e872cb6649c42863e5c47011bae9e17bbdb (diff)
downloadgdb-1daad298d699383bb4f35aa919a1acfa0ab8e16c.zip
gdb-1daad298d699383bb4f35aa919a1acfa0ab8e16c.tar.gz
gdb-1daad298d699383bb4f35aa919a1acfa0ab8e16c.tar.bz2
[testsuite] Pass pthreads in prepare_for_testing
"pthreads" in the right flag to pass in prepare_for_testing to linker, instead of additional_flags. Without this patch, the test case can't be complied by clang. gdb compile failed, clang: warning: -lpthread: 'linker' input unused gdb/testsuite: 2017-11-22 Yao Qi <yao.qi@linaro.org> * gdb.base/info-os.exp: Pass pthreads. * gdb.multi/multi-attach.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.multi')
-rw-r--r--gdb/testsuite/gdb.multi/multi-attach.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.multi/multi-attach.exp b/gdb/testsuite/gdb.multi/multi-attach.exp
index 9397f85..0e54b4f 100644
--- a/gdb/testsuite/gdb.multi/multi-attach.exp
+++ b/gdb/testsuite/gdb.multi/multi-attach.exp
@@ -23,7 +23,7 @@ if {![can_spawn_for_attach]} {
return 0
}
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug additional_flags=-lpthread}]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
return -1
}