From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17150 invoked by alias); 17 Feb 2009 13:30:05 -0000 Received: (qmail 17070 invoked by uid 22791); 17 Feb 2009 13:30:04 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Feb 2009 13:29:56 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1E03B10701; Tue, 17 Feb 2009 13:29:54 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id D3556106D8; Tue, 17 Feb 2009 13:29:53 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LZQ1I-0008Ls-2l; Tue, 17 Feb 2009 08:29:52 -0500 Date: Tue, 17 Feb 2009 16:20:00 -0000 From: Daniel Jacobowitz To: Vinay Sridhar Cc: gdb-patches@sourceware.org, luisgpm@linux.vnet.ibm.com Subject: Re: [RFC][Patch] Fix gdb failure to access tls data for parent thread Message-ID: <20090217132951.GA32041@caradoc.them.org> Mail-Followup-To: Vinay Sridhar , gdb-patches@sourceware.org, luisgpm@linux.vnet.ibm.com References: <200901091416.10563.vinay@linux.vnet.ibm.com> <20090204132851.GA9935@caradoc.them.org> <1234341068.13249.4.camel@localhost.localdomain> <20090211155300.GA22689@caradoc.them.org> <1234417406.6489.3.camel@localhost.localdomain> <20090215182233.GA24660@caradoc.them.org> <1234779868.4861.7.camel@localhost.localdomain> <20090216150403.GA27072@caradoc.them.org> <1234849907.4215.7.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1234849907.4215.7.camel@localhost.localdomain> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00348.txt.bz2 On Tue, Feb 17, 2009 at 11:21:47AM +0530, Vinay Sridhar wrote: > On Mon, 2009-02-16 at 10:04 -0500, Daniel Jacobowitz wrote: > > On Mon, Feb 16, 2009 at 03:54:28PM +0530, Vinay Sridhar wrote: > > > I was able to recreate this against a gcc compiled binary, so I guess > > > the omp implementation isnt an issue here. > > > > OK, then we're back to my earlier question: > > > > > The private info is set in attach_thread. That is supposed to be > > > called for every thread; how did you get a thread on the thread list > > > that did not have this routine called? A breakpoint on add_thread > > > and add_thread_with_info will probably figure this out. > > > > Same response. add_thread_with_info () is not called for parent thread. That doesn't answer the question, sorry. At some point, add_thread (not add_thread_with_info) must have been called. Where did that happen? > Could this be related? : > http://sourceware.org/ml/gdb-patches/2008-03/msg00266.html I don't think so. -- Daniel Jacobowitz CodeSourcery