Date: Fri, 28 Nov 1997 02:03:08 +0100 From: J Wunsch <j@uriah.heep.sax.de> To: hackers@FreeBSD.ORG Subject: Re: Shared Libraries and debugging Message-ID: <19971128020308.23184@uriah.heep.sax.de> In-Reply-To: <199711272255.OAA18209@austin.polstra.com>; from John Polstra on Thu, Nov 27, 1997 at 02:55:56PM -0800 References: <199711250748.SAA16393@holly.rd.net> <19971126182058.04145@uriah.heep.sax.de> <199711272255.OAA18209@austin.polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971128020308.23184>