From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26573 invoked by alias); 22 Sep 2006 18:43:58 -0000 Received: (qmail 26565 invoked by uid 22791); 22 Sep 2006 18:43:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Sep 2006 18:43:56 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id C640026AD4; Fri, 22 Sep 2006 11:43:54 -0700 (PDT) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13524-03-2; Fri, 22 Sep 2006 11:43:53 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id E697A26AB2; Fri, 22 Sep 2006 11:43:53 -0700 (PDT) Received: from 192.168.92.59 ([192.168.92.59]) by ussunex01.palmsource.com ([192.168.101.9]) via Exchange Front-End Server owa.palmsource.com ([10.0.20.17]) with Microsoft Exchange Server HTTP-DAV ; Fri, 22 Sep 2006 18:43:54 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 22 Sep 2006 11:43:53 -0700 Subject: Re: TLS on powerpc(32/64) From: Michael Snyder To: Prosun Niyogi Cc: gdb@sourceware.org, pniyogi@us.ibm.com In-Reply-To: <20060922181810.81410.qmail@web38911.mail.mud.yahoo.com> References: <20060922181810.81410.qmail@web38911.mail.mud.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 22 Sep 2006 18:43:00 -0000 Message-Id: <1158950633.22863.73.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 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-09/txt/msg00134.txt.bz2 On Fri, 2006-09-22 at 11:18 -0700, Prosun Niyogi wrote: > Hi, thanks for your response. No, it isnt a > glibc/libthread_db version problem ... I've built the > same sources for ia32 and the test passes fine. It on > powerpc that I see the failure. > > So, after a little digging, it seems like the load > module address that gdb is using to make the call to > td_thr_tls_get_addr_p is bogus. At the moment, I am > comparing results with gdb-6.3 which works in my > envrionment. The offset to the variable within LM > looks fine. Still debugging. I am not too sure of what > the concept of the load module address is. Where would > be the appropriate place to look for background info? > glibc TLS documentation? > > The lm_addr calculated in dwarf2loc.c looks bad on > ppc. That's a little beyond my knowledge. Could it be a 32/64 wordsize issue? A sign extension issue?