From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10070 invoked by alias); 31 Dec 2004 13:51:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9921 invoked from network); 31 Dec 2004 13:51:25 -0000 Received: from unknown (HELO mailserv.unb.ca) (131.202.3.23) by sourceware.org with SMTP; 31 Dec 2004 13:51:25 -0000 Received: from smeagol.unb.ca (smeagol.unb.ca [131.202.3.52]) by mailserv.unb.ca (8.13.1/8.13.1) with ESMTP id iBVDpMge006732 for ; Fri, 31 Dec 2004 09:51:22 -0400 Received: from smeagol.unb.ca (localhost.localdomain [127.0.0.1]) by smeagol.unb.ca (8.12.11/8.12.8) with ESMTP id iBVDpMk4032716 for ; Fri, 31 Dec 2004 09:51:22 -0400 Received: (from apache@localhost) by smeagol.unb.ca (8.12.11/8.12.8/Submit) id iBVDpMRK032714 for gdb@sources.redhat.com; Fri, 31 Dec 2004 09:51:22 -0400 Received: from fctnnbsch17-156034217127.nb.aliant.net (fctnnbsch17-156034217127.nb.aliant.net [156.34.217.127]) by webmail.unb.ca (IMP) with HTTP for ; Fri, 31 Dec 2004 09:51:22 -0400 Message-ID: <1104501082.41d5595a81666@webmail.unb.ca> Date: Fri, 31 Dec 2004 13:51:00 -0000 From: Adam Richard To: gdb@sources.redhat.com Subject: Re: warning: Unable to find dynamic linker breakpoint function References: <1104355984.41d322909c42d@webmail.unb.ca> <20041229214406.GA5135@nevyn.them.org> <1104453359.41d49eef5093e@webmail.unb.ca> <20041231004046.GA17098@nevyn.them.org> In-Reply-To: <20041231004046.GA17098@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-UNB-MailScanner-Information: Please contact the ISP for more information X-UNB-VirusScanner: Found to be clean X-UNB-SpamDetails: X-MailScanner-From: g4c9z@unb.ca X-SW-Source: 2004-12/txt/msg00140.txt.bz2 Quoting Daniel Jacobowitz : > On Thu, Dec 30, 2004 at 08:35:59PM -0400, Adam Richard wrote: > > Quoting Daniel Jacobowitz : > > > > > On Wed, Dec 29, 2004 at 05:33:04PM -0400, Adam Richard wrote: > > > > I wonder if someone knows what the following warning means? It appears > whenever I > > > use > > > > the "run" command to start my program: > > > > > > > > (gdb) run > > > > Starting program: /home/adam/programming/programs/meals/meals > > > > warning: Unable to find dynamic linker breakpoint function. > > > > GDB will be unable to debug shared library initializers > > > > and track explicitly loaded dynamic code. > > > > > > > > I found a few posts related to it but few people seem to know what the warning > > > message > > > > itself means. > > > > > > It means exactly what it says - GDB could not set the breakpoint that > > > it uses for tracking things like dlopen(). > > > > > > I can't guess at causes, since you didn't tell us what your platform > > > is. > > > > Actually, the error message isn't really clear - I just looked up what dlopen does, > but > > I don't see what it has to do with breakpoints. As to my platform, I'm using > Gentoo > > Nothing, on its own. GDB uses a breakpoint to be able to support > debugging programs which use dlopen. > That doesn't really make sense to me. Setting a breakpoint *is* a debugging task. Why does it need to set a breakpoint in order to debug? > > Linux, kernel 2.6.9, on an AMD Athlon XP processor. I read somewhere that it > might > > have to do with a stripped gdb but I don't understand why I can't have a stripped > gdb > > so I'm hoping for an explanation. > > Not a stripped GDB, a stripped dynamic linker (/lib/ld-linux.so.2). OK, why does a stripped dynamic linker impair debugging? I noticed that that file is part of the glibc package, and I can see why stripping it would prevent being able to step into its functions for any program which depends on it (which is most programs). But I still don't understand your explanation. > -- > Daniel Jacobowitz > --- Adam http://personal.nbnet.nb.ca/aerichar/