You can try
$ gdb perl
> load <shared_lib>
> break some_func
> run [args] script.pl [args]
On some versions of unix, ld will accept a parameter or look at an
environment variable that tells it to load all shared libraries at program
startup instead of waiting until they are referenced.
man ld
________________________________
Glen Coakley, Sr. Software Engineer
MQSoftware Inc., (763) 543-4845
"Tinkero ergo sum." -- Chuck Murcko
> -----Original Message-----
> From: Sam Tregar [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 9:41 AM
> To: Neil Watkiss
> Cc: [EMAIL PROTECTED]
> Subject: Re: Another convert
>
>
> On Thu, 5 Jul 2001, Neil Watkiss wrote:
>
> > $ gdb perl
> > > break some_func
> > > run [args] script.pl [args]
>
> Wait, that doesn't work. "some_func" is part of a shared library that
> hasn't been loaded yet. I usually end up having to let script.pl run
> until it uses my module and the Ctrl-c'ing into the debugger
> where I can
> then set the breakpoint I want.
>
> -sam
>
>