Re: debugging dynamically loadable code

Daniel Jacobowitz
2006-04-03T21:27:18Z

On Mon, Apr 03, 2006 at 11:21:35PM +0200, Pupeno wrote:
> On Monday, 3 de April de 2006 18:34, Daniel Jacobowitz wrote:
> > On Mon, Apr 03, 2006 at 06:09:33PM +0200, Pupeno wrote:
> > > Any ideas how can I do my debugging ?
> >
> > You can do one of two things here:
> >
> > - "set stop-on-solib-events 1". This will cause GDB to stop when
> > shared libraries are loaded or unloaded. You can use "info shared" to
> > see if the library you want has been loaded after a stop.
> It halted the process very soon, maybe some loading I was not aware of and I
> was not sure how to continue.

You can just say continue and try info shared again, until you see the
library you want. Anyway, if pending breakpoints work for you, use
those instead.

--
Daniel Jacobowitz
CodeSourcery