From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4133 invoked by alias); 21 Oct 2006 04:44:16 -0000 Received: (qmail 4123 invoked by uid 22791); 21 Oct 2006 04:44:16 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Oct 2006 04:44:13 +0000 Received: by nf-out-0910.google.com with SMTP id o25so1879838nfa for ; Fri, 20 Oct 2006 21:44:11 -0700 (PDT) Received: by 10.49.93.13 with SMTP id v13mr9459212nfl; Fri, 20 Oct 2006 21:44:11 -0700 (PDT) Received: from amd64-00-0c-76-b4-ad-33.lan ( [86.60.39.155]) by mx.google.com with ESMTP id o53sm343414nfa.2006.10.20.21.44.09; Fri, 20 Oct 2006 21:44:11 -0700 (PDT) From: "Munzir Taha (=?utf-8?q?=D9=85=D9=86=D8=B0=D8=B1?= =?utf-8?q?_=D8=B7=D9=87?=)" To: gdb@sourceware.org Subject: Re: Why type = ? Date: Sat, 21 Oct 2006 04:44:00 -0000 User-Agent: KMail/1.9.1 References: <200610210620.24201.munzirtaha@gmail.com> <4539992E.626AAE3A@dessent.net> In-Reply-To: <4539992E.626AAE3A@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200610210744.23212.munzirtaha@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00168.txt.bz2 On Saturday 21 October 2006 06:51, Brian Dessent wrote: > "Munzir Taha (=D9=85=D9=86=D8=B0=D8=B1 =D8=B7=D9=87)" wrote: > > Hi, in this small program logic tells me that errno and n should have t= he > > same value displayed in gdb. Am I missing something obvious? > > You're probably running into the fact that on modern glibc errno is a > TLS symbol, not a regular one. This means it can take on a different > value in each thread, and thus is accessed through an indirection. > > You might get better debugging ability if you compile with -ggdb3 Thanks a lot Brian for your quick and accurate response. Compiling with -gg= db3=20 displays the correct value for errno now. --=20 Munzir Taha Telecommunications and Electronics Engineer Maintainer of Fedora Arabic Translation Project https://listman.redhat.com/mailman/listinfo/fedora-trans-ar Maintainer of the OpenBugs project page at http://www.arabic-fedora.org/munzir/OpenBugs.html Master CIW Designer, ICDL, MOUS, Linux+, LPI 101 Riyadh, SA