This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb/testsuite/gdb.threads: Make sure TLS tests link against pthreads.
- From: Tom Tromey <tromey at redhat dot com>
- To: Will Newton <will dot newton at linaro dot org>
- Cc: gdb-patches at sourceware dot org, patches at linaro dot org
- Date: Wed, 17 Jul 2013 12:18:25 -0600
- Subject: Re: [PATCH] gdb/testsuite/gdb.threads: Make sure TLS tests link against pthreads.
- References: <51B22910 dot 7010208 at linaro dot org>
>>>>> "Will" == Will Newton <will.newton@linaro.org> writes:
Will> int main(void)
Will> {
Will> - return 0;
Will> + return pthread_self();
I think it is possible according to POSIX for pthread_t to be a pointer
type. It seems like it would be safer to just use a call to
pthread_testcancel in all these tests.
Tom