Subject: Re: debugging shared library
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 02/11/2004 00:31:05
On Tue, 10 Feb 2004 <madhvesh.s@ap.sony.com> wrote:
>
> Does any one know, how to debug shared library
> in NetBSD? Is it possible to debug shared library
> with source level?

I always start with a breakpoint in gdb at main().  The program stops, and
I add more breakpoints.  If using .gdbinit, when it stops I issue "enable
break" because breakpoints within shared libraries sometimes get disabled
when startging/restarting.  

I don't know if there's a better way, or what exactly the technical
difficulty is (i.e., why it's necessary).  Most of my hacking is with
shared libraries, and it works for me.  

HTH.

--jkl