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: Will Newton <will dot newton at linaro dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Patch Tracking <patches at linaro dot org>
- Date: Wed, 17 Jul 2013 21:17:51 +0100
- Subject: Re: [PATCH] gdb/testsuite/gdb.threads: Make sure TLS tests link against pthreads.
- References: <51B22910 dot 7010208 at linaro dot org> <87ip09f3ta dot fsf at fleche dot redhat dot com>
On 17 July 2013 19:18, Tom Tromey <tromey@redhat.com> wrote:
>
> >>>>> "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.
Yes, that's true. I'll respin the patch, thanks for the review!
--
Will Newton
Toolchain Working Group, Linaro