From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19757 invoked by alias); 29 Jan 2003 17:16:59 -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 19728 invoked from network); 29 Jan 2003 17:16:58 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 29 Jan 2003 17:16:58 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18dxiW-0008Ab-00; Wed, 29 Jan 2003 13:17:49 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18dvpv-0000MK-00; Wed, 29 Jan 2003 12:17:19 -0500 Date: Wed, 29 Jan 2003 17:16:00 -0000 From: Daniel Jacobowitz To: William Trenker Cc: gdb@sources.redhat.com Subject: Re: Newbie asks about .so libraries Message-ID: <20030129171719.GA1364@nevyn.them.org> Mail-Followup-To: William Trenker , gdb@sources.redhat.com References: <20030129085049.25d160b2.wdtrenker@yahoo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030129085049.25d160b2.wdtrenker@yahoo.ca> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00493.txt.bz2 On Wed, Jan 29, 2003 at 08:50:49AM +0000, William Trenker wrote: > Here's a basic question. Can gdb/insight debug code from .so files? > > I have a library, compiled with debug information, and a main > program, also with debug info. If I start gdb with the main program, > does gdb automatically dig up the debug info from any .so libraries > used by the main program? Can I set breakpoints on the source code > in the .so file? > > Or do I have to link statically for debugging purposes? It should work fine. There are a couple of quirks, though. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer