From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7020 invoked by alias); 23 May 2006 23:02:41 -0000 Received: (qmail 6971 invoked by uid 22791); 23 May 2006 23:02:41 -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; Tue, 23 May 2006 23:02:39 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Fiftd-0002VU-7j; Tue, 23 May 2006 19:02:37 -0400 Date: Tue, 23 May 2006 23:32:00 -0000 From: Daniel Jacobowitz To: PAUL GILLIAM Cc: gdb@sources.redhat.com Subject: Re: Chicken-or-egg problem with shared libraries Message-ID: <20060523230237.GA9621@nevyn.them.org> Mail-Followup-To: PAUL GILLIAM , gdb@sources.redhat.com References: <1148418266.315.45.camel@dufur.beaverton.ibm.com> <20060523221114.GA8445@nevyn.them.org> <1148421377.315.65.camel@dufur.beaverton.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1148421377.315.65.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-05/txt/msg00341.txt.bz2 On Tue, May 23, 2006 at 02:56:17PM -0700, PAUL GILLIAM wrote: > bkpt_at_symbol: > warning (_("Unable to find dynamic linker breakpoint function.\n" > "GDB will be unable to debug shared library initializers\n" > "and track explicitly loaded dynamic code.")); > > I believe this is executed because although it finds > "_dl_debug_state" (now that Alan made his change to BFD), on a ppc64 > system, that symbol is not in the a code section and so it is rejected: > > > sym_addr = bfd_lookup_symbol (tmp_bfd, *bkpt_namep, SEC_CODE); > ^^^^^^^^^ I understood from Alan that GDB ought to actually deal with the function descriptor here and go from that to the code address; or is that wrong? [I'm clueless for function descriptor platforms.] -- Daniel Jacobowitz CodeSourcery