From owner-freebsd-hackers Wed Nov 26 09:30:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA03280 for hackers-outgoing; Wed, 26 Nov 1997 09:30:25 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA03269 for ; Wed, 26 Nov 1997 09:30:18 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id SAA26409; Wed, 26 Nov 1997 18:30:06 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id SAA17239; Wed, 26 Nov 1997 18:20:59 +0100 (MET) Message-ID: <19971126182058.04145@uriah.heep.sax.de> Date: Wed, 26 Nov 1997 18:20:58 +0100 From: J Wunsch To: freebsd-hackers@FreeBSD.ORG Cc: darius@senet.com.au Subject: Re: Shared Libraries and debugging Reply-To: Joerg Wunsch References: <199711250748.SAA16393@holly.rd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199711250748.SAA16393@holly.rd.net>; from Daniel J. O'Connor on Tue, Nov 25, 1997 at 06:18:59PM +1030 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Daniel J. O'Connor wrote: > I was fiddling with some code which links against shared libraries, and > noticed that when viewing a core dumb with gdb, it doesn't load the symbols > from the shared libraries, so consequently debugging the program is kind of > akward. I usually set a breakpoint at main(), run it till there, and then voila!, you can also specify breakpoints at shared lib functions... -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)