From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25072 invoked by alias); 10 Jul 2012 08:09:56 -0000 Received: (qmail 25052 invoked by uid 22791); 10 Jul 2012 08:09:55 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Jul 2012 08:09:42 +0000 From: "hjl.tools at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug threads/14345] New: TLS doesn't work on Linux/x86 Date: Tue, 10 Jul 2012 08:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q3/txt/msg00026.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14345 Bug #: 14345 Summary: TLS doesn't work on Linux/x86 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: threads AssignedTo: unassigned@sourceware.org ReportedBy: hjl.tools@gmail.com Classification: Unclassified On Linux/x86, I got [hjl@gnu-6 tmp]$ cat x.c #include __thread int x; int main () { x = 0; printf ("%d\n", x); x = 1; printf ("%d\n", x); return 0; } [hjl@gnu-6 tmp]$ gcc -g x.c [hjl@gnu-6 tmp]$ gdb a.out GNU gdb (GDB) 7.4.50.20120707-cvs Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/a.out...done. (gdb) b main Breakpoint 1 at 0x400520: file x.c, line 8. (gdb) r Starting program: /tmp/a.out Breakpoint 1, main () at x.c:8 8 x = 0; (gdb) p x Cannot find thread-local variables on this target (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.