From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1345 invoked by alias); 17 Feb 2009 05:54:01 -0000 Received: (qmail 1333 invoked by uid 22791); 17 Feb 2009 05:54:01 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from e23smtp07.au.ibm.com (HELO e23smtp07.au.ibm.com) (202.81.31.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Feb 2009 05:53:54 +0000 Received: from d23relay02.au.ibm.com (d23relay02.au.ibm.com [202.81.31.244]) by e23smtp07.au.ibm.com (8.13.1/8.13.1) with ESMTP id n1H5ro8e027627 for ; Tue, 17 Feb 2009 16:53:50 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay02.au.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n1H5ro0a1118276 for ; Tue, 17 Feb 2009 16:53:50 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n1H5roqa012765 for ; Tue, 17 Feb 2009 16:53:50 +1100 Received: from [9.124.124.72] (vinaysridhar.in.ibm.com [9.124.124.72]) by d23av01.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n1H5rlZN012719; Tue, 17 Feb 2009 16:53:47 +1100 Subject: Re: [RFC][Patch] Fix gdb failure to access tls data for parent thread From: Vinay Sridhar To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org, luisgpm@linux.vnet.ibm.com In-Reply-To: <20090216150403.GA27072@caradoc.them.org> 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> Content-Type: text/plain Date: Tue, 17 Feb 2009 07:01:00 -0000 Message-Id: <1234849907.4215.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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/msg00343.txt.bz2 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. Could this be related? : http://sourceware.org/ml/gdb-patches/2008-03/msg00266.html On applying the patch I had posted earlier this appears to be fixed. However I'm not sure if it has other repercussions.