From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13158 invoked by alias); 28 Aug 2006 23:22:12 -0000 Received: (qmail 13150 invoked by uid 22791); 28 Aug 2006 23:22:11 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 28 Aug 2006 23:22:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GHqQg-00074D-E6; Mon, 28 Aug 2006 19:22:06 -0400 Date: Mon, 28 Aug 2006 23:22:00 -0000 From: Daniel Jacobowitz To: PAUL GILLIAM Cc: gdb@sources.redhat.com, sjmunroe@us.ibm.com Subject: Re: breaks at thread create and delete fail on PPC64/Linux Message-ID: <20060828232206.GA27059@nevyn.them.org> Mail-Followup-To: PAUL GILLIAM , gdb@sources.redhat.com, sjmunroe@us.ibm.com References: <1156806903.5898.29.camel@dufur.beaverton.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1156806903.5898.29.camel@dufur.beaverton.ibm.com> User-Agent: Mutt/1.5.11+cvs20060403 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-08/txt/msg00205.txt.bz2 On Mon, Aug 28, 2006 at 04:15:03PM -0700, PAUL GILLIAM wrote: > 3) 'dereferencing' the function descriptor should give the > actual address at which to set a breakpoint, but gives instead > the offset within the "pthread" library where the breakpoint > should be placed. > > The attached patch 'fixes' the problem by looking up the load address of the > "pthread" library and adding that to the address from the PLT. This seems to > do the trick, but THIS HAS ONLY BEEN TESTED WITH A 64-BIT GDB AND A 64-BIT > TARGET. And it's a real HACK!!! > > But it does illustrate the problem. > > So, should I try to change GDB so that enable_thread_event() gets called after > the dynamic loader has has a chance to relocate the .opd? Here's my question: why isn't that happening already? Don't we get shared library events after relocation processing? Or do we get one before and one after? -- Daniel Jacobowitz CodeSourcery