From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20304 invoked by alias); 17 Jul 2013 18:18:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20295 invoked by uid 89); 17 Jul 2013 18:18:35 -0000 X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 17 Jul 2013 18:18:35 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6HIIQQO014081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 17 Jul 2013 14:18:26 -0400 Received: from barimba (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r6HIIPZw009479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 17 Jul 2013 14:18:26 -0400 From: Tom Tromey To: Will Newton Cc: gdb-patches@sourceware.org, patches@linaro.org Subject: Re: [PATCH] gdb/testsuite/gdb.threads: Make sure TLS tests link against pthreads. References: <51B22910.7010208@linaro.org> Date: Wed, 17 Jul 2013 18:18:00 -0000 In-Reply-To: <51B22910.7010208@linaro.org> (Will Newton's message of "Fri, 07 Jun 2013 19:40:16 +0100") Message-ID: <87ip09f3ta.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-07/txt/msg00410.txt.bz2 >>>>> "Will" == Will Newton 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