From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31107 invoked by alias); 3 Apr 2006 21:23:03 -0000 Received: (qmail 31084 invoked by uid 22791); 3 Apr 2006 21:23:01 -0000 X-Spam-Check-By: sourceware.org Received: from blue.powerfulnet.net (HELO blue.powerfulnet.net) (80.68.94.67) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Apr 2006 21:22:58 +0000 Received: from ulab.pupeno.com (80-102-196-124.bcn1.dialup.uni2.es [::ffff:80.102.196.124]) (AUTH: PLAIN pupeno@pupeno.com, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by blue.powerfulnet.net with esmtp; Mon, 03 Apr 2006 21:22:41 +0000 id 00018006.44319227.00000A84 From: Pupeno To: Daniel Jacobowitz Subject: Re: debugging dynamically loadable code Date: Mon, 03 Apr 2006 21:23:00 -0000 User-Agent: KMail/1.8.3 Cc: gdb@sourceware.org References: <200604031809.35814.pupeno@pupeno.com> <20060403163456.GA9232@nevyn.them.org> In-Reply-To: <20060403163456.GA9232@nevyn.them.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1411816.AyeW7dVjpV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604032321.42906.pupeno@pupeno.com> 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-04/txt/msg00013.txt.bz2 --nextPart1411816.AyeW7dVjpV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 1183 On Monday, 3 de April de 2006 18:34, Daniel Jacobowitz wrote: > On Mon, Apr 03, 2006 at 06:09:33PM +0200, Pupeno wrote: > > Any ideas how can I do my debugging ? > > You can do one of two things here: > > - "set stop-on-solib-events 1". This will cause GDB to stop when > shared libraries are loaded or unloaded. You can use "info shared" to > see if the library you want has been loaded after a stop. It halted the process very soon, maybe some loading I was not aware of and = I=20 was not sure how to continue. > - Pending breakpoints. You can set a breakpoint by filename:line or > function name, even if that object hasn't been loaded yet -=20 Oh, that worked, particurarly breakpoint on filename:line. I tried pending= =20 breakpoints once but it didn't work, it just didn't break, now it worked li= ke=20 a charm. > you just=20 > may not be able to do it using the DDD GUI. You need GDB 6.3 or 6.4 > for this to work. I don't know if DDD lets you get at the GDB console > usefully. Yes, I can do it, DDD let's you access gdb console, sometimes it behaves=20 funny, but the data show makes it worth it. Thank you. --=20 Pupeno (http://pupeno.com) --nextPart1411816.AyeW7dVjpV Content-Type: application/pgp-signature Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEMZHmfW48a9PWGkURAoCdAKCDkD8vZPuf6M3caTFRVBzbDE8UDwCfY3nW mUSmWQhjURhwHe06uQ8LNMk= =Wb/8 -----END PGP SIGNATURE----- --nextPart1411816.AyeW7dVjpV--