From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53721 invoked by alias); 27 Feb 2016 12:38:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 53705 invoked by uid 89); 27 Feb 2016 12:38:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=displaying, H*r:134, tia, HX-Received-From:4830 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 27 Feb 2016 12:38:34 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZe8j-0003j8-FX for gdb@sourceware.org; Sat, 27 Feb 2016 07:38:32 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZe8j-0003iv-Bw for gdb@sourceware.org; Sat, 27 Feb 2016 07:38:29 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aZe8i-0007X8-M1 for gdb@sourceware.org; Sat, 27 Feb 2016 07:38:29 -0500 Date: Sat, 27 Feb 2016 12:38:00 -0000 Message-Id: <83wppqba6m.fsf@gnu.org> From: Eli Zaretskii To: gdb@sourceware.org Subject: Examining thread-local storage with GDB Reply-to: Eli Zaretskii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00033.txt.bz2 How does one display variables in TLS? I see nothing about this in the manual. What happened to me was that an attempt to display the value of a thread-local variable was responded with some confusing message like "No global value for this variable" (or something, I don't remember the exact wording and couldn't find it in the sources), and it took a long time (including looking at disassembly) to figure out this has something to do with TLS. Once I had that figured out, I still cannot find any way of displaying the value, though. What am I missing? TIA