Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: gdb/testsuite/gdb.threads/tls-shared.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.threads/tls-nodebug.exp ('k') | gdb/testsuite/gdb.threads/tls-shared.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.threads/tls-shared.c
diff --git a/gdb/testsuite/gdb.threads/tls-shared.c b/gdb/testsuite/gdb.threads/tls-shared.c
index d4f8e5cc6e092f437e8863bf4e2d694684ce79ab..02b13083ab9331aa44ab03cd3a2dee6d171bffb7 100644
--- a/gdb/testsuite/gdb.threads/tls-shared.c
+++ b/gdb/testsuite/gdb.threads/tls-shared.c
@@ -1,6 +1,11 @@
+
+#include <pthread.h>
+
__thread int i_tls = 1;
int foo ()
{
+ /* Ensure we link against pthreads even with --as-needed. */
+ pthread_testcancel();
return i_tls;
}
« no previous file with comments | « gdb/testsuite/gdb.threads/tls-nodebug.exp ('k') | gdb/testsuite/gdb.threads/tls-shared.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698