From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25611 invoked by alias); 6 Jan 2006 19:06:42 -0000 Received: (qmail 25603 invoked by uid 22791); 6 Jan 2006 19:06:42 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.203) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jan 2006 19:06:40 +0000 Received: by zproxy.gmail.com with SMTP id l1so3527479nzf for ; Fri, 06 Jan 2006 11:06:38 -0800 (PST) Received: by 10.36.24.7 with SMTP id 7mr8749126nzx; Fri, 06 Jan 2006 11:06:38 -0800 (PST) Received: by 10.37.2.42 with HTTP; Fri, 6 Jan 2006 11:06:38 -0800 (PST) Message-ID: <8f2776cb0601061106r729a857fy87266cf260bde793@mail.gmail.com> Date: Fri, 06 Jan 2006 19:06:00 -0000 From: Jim Blandy To: Anthony Heading Subject: Re: debugging shared libraries Cc: Kris Warkentin , gdb@sources.redhat.com In-Reply-To: <43BE8513.6020402@ajrh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3518719F06577C4F85DA618E3C37AB9101CFC9FC@nimbus.ott.qnx.com> <43BDC9B8.3010906@ajrh.net> <8f2776cb0601060010l18ef2664laa60f4f9b3149ead@mail.gmail.com> <43BE8513.6020402@ajrh.net> 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-01/txt/msg00044.txt.bz2 On 1/6/06, Anthony Heading wrote: > But my original suggestion was about trying to sidestep that. If gdb is > run on the shared library, it's clear even technically what library we're > trying to debug! And indeed that already works fine (on ELF at least): (That's what I get for jumping into the middle of a thread.) You're right, there's no necessary connection there that I can see. You'll need to make sure the breakpoints get disabled (bp_shlib_disabled) and re-set (as by breakpoint_re_set), since the shared library probably won't get loaded at the address GDB expects before the program runs.