From owner-freebsd-hackers Thu Nov 27 17:16:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA06440 for hackers-outgoing; Thu, 27 Nov 1997 17:16:48 -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 RAA06435 for ; Thu, 27 Nov 1997 17:16:44 -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 CAA20988 for hackers@FreeBSD.ORG; Fri, 28 Nov 1997 02:16:41 +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 CAA03286; Fri, 28 Nov 1997 02:03:08 +0100 (MET) Message-ID: <19971128020308.23184@uriah.heep.sax.de> Date: Fri, 28 Nov 1997 02:03:08 +0100 From: J Wunsch To: hackers@FreeBSD.ORG Subject: Re: Shared Libraries and debugging Reply-To: Joerg Wunsch References: <199711250748.SAA16393@holly.rd.net> <19971126182058.04145@uriah.heep.sax.de> <199711272255.OAA18209@austin.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199711272255.OAA18209@austin.polstra.com>; from John Polstra on Thu, Nov 27, 1997 at 02:55:56PM -0800 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 John Polstra wrote: > > I usually set a breakpoint at main(), run it till there, and then > > voila!, you can also specify breakpoints at shared lib functions... > > But he was asking about core dumps. And he's right, it doesn't work. I missed this detail, but i think the same trick did work for me by accident. Probably, i was just lucky enough that subsequential runs of the same program caused the same mappings. Since running a program until the entry of main() causes all the (default) shared libs to be mapped, i've got something that could be used even with a coredump. -- 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. ;-)