From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16718 invoked by alias); 8 Feb 2003 04:35:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16707 invoked from network); 8 Feb 2003 04:35:20 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 8 Feb 2003 04:35:20 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h184ZKf22539 for ; Fri, 7 Feb 2003 23:35:20 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h184ZJa17497 for ; Fri, 7 Feb 2003 23:35:19 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h184ZDH15487; Fri, 7 Feb 2003 23:35:13 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id BF335FF79; Fri, 7 Feb 2003 23:39:19 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15940.35318.229578.586185@localhost.redhat.com> Date: Sat, 08 Feb 2003 04:35:00 -0000 To: Michael Elizabeth Chastain Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] thread local storage tests In-Reply-To: <200302080039.h180d4C22676@duracef.shout.net> References: <200302080039.h180d4C22676@duracef.shout.net> X-SW-Source: 2003-02/txt/msg00248.txt.bz2 Michael Elizabeth Chastain writes: > http://www.shout.net/~mec/sunday/2003-02-07-tls/index.html > > These tests use '__thread' which is available with gcc gcc-3_3-branch > and later. So if you want to work on the test themselves you need > to grab a 3.3 or 3.4 compiler. > > They also have problems even with those compilers. > > Michael C thanks, this is really useful. Hmm, I suspected that. I was able to get them to run in the current Redhat rawhide. What glibc(s) were you using? It may also be due to slightly versions of binutils, even though, you are also using HEAD binutils, and it should work there. I don't know whether stabs has support for TLS, I doubt it. In dwarf2, if you use readelf -w, you should see, for the thread local variables, a DW_OP_GNU_tls_push_address, in the debug info. I ran into a compiler version that compiled the file happily, but didn't produce the right information, It was marking the variale as a regular static one. On my system it refuses to compile it, I get the 2 unsupported tests. At least something matches. :-( Do you have the gdb.logs for the cases that almost work? Elena