From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29732 invoked by alias); 29 Jan 2003 22:03:27 -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 29725 invoked from network); 29 Jan 2003 22:03:27 -0000 Received: from unknown (HELO linux) (24.209.209.134) by 172.16.49.205 with SMTP; 29 Jan 2003 22:03:27 -0000 Received: from bdill by linux with local (Exim 3.35 #1 (Debian)) id 18e0Jt-0004ms-00; Wed, 29 Jan 2003 17:04:33 -0500 Date: Wed, 29 Jan 2003 22:03:00 -0000 To: William Trenker , gdb@sources.redhat.com Subject: Re: Newbie asks about .so libraries Message-ID: <20030129220433.GA18368@linux.dillfamily.org> References: <20030129085049.25d160b2.wdtrenker@yahoo.ca> <20030129171719.GA1364@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030129171719.GA1364@nevyn.them.org> User-Agent: Mutt/1.3.28i From: "Bennett F. Dill" X-SW-Source: 2003-01/txt/msg00504.txt.bz2 On Wed, Jan 29, 2003 at 12:17:19PM -0500, Daniel Jacobowitz wrote: > 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 In my experience, when I attach to a process that includes say libc.so.1, gdb says no debugging information found. I thought maybe I had to recompile libc.so.1. Is that not the case? Maybe/probably I'm doing something wrong. Ben