From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10488 invoked by alias); 3 Apr 2006 16:09:41 -0000 Received: (qmail 10480 invoked by uid 22791); 3 Apr 2006 16:09:40 -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 16:09:39 +0000 Received: from ulab.pupeno.com (80-102-227-182.bcn2.dialup.uni2.es [::ffff:80.102.227.182]) (AUTH: PLAIN pupeno@pupeno.com, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by blue.powerfulnet.net with esmtp; Mon, 03 Apr 2006 16:09:35 +0000 id 00018008.443148C0.000073CA From: Pupeno To: gdb@sourceware.org Subject: debugging dynamically loadable code Date: Mon, 03 Apr 2006 16:09:00 -0000 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5699957.DX5hfPZffp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604031809.35814.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/msg00011.txt.bz2 --nextPart5699957.DX5hfPZffp Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 783 Hello, hope this is not off-topic, I need to debug some code that is located in a dynamic library, a .so file.= =20 This file is loaded by a program at run-time (with dlopen I supouse). So I= =20 load this program into gdb (using ddd) and my problem is that I can't open= =20 the yet-unloaded sources and/or set a break point on them. If I run the program to let it load the .so file it'll be too late because = I=20 need to debug the module initialization code. I know I should put a breakpoint between the loading and the running of the= =20 module, but I can't find it. The module is loaded thru a custom script this= =20 application interprets, so, it's hard to dig that code. Any ideas how can I do my debugging ? Thank you. --=20 Pupeno (http://pupeno.com) --nextPart5699957.DX5hfPZffp Content-Type: application/pgp-signature Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD4DBQBEMUi/fW48a9PWGkURAoW1AJi800dS/H+Wftod5ggLtSkvR8tNAJ9JvsBn Jz673Jv0wcGJAXjYdwuPMg== =JKzK -----END PGP SIGNATURE----- --nextPart5699957.DX5hfPZffp--