This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: debugging dynamic link/load code on Linux
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jack J <get_info101 at yahoo dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 15 Oct 2003 16:14:01 -0400
- Subject: Re: debugging dynamic link/load code on Linux
- References: <20031015201057.77923.qmail@web20510.mail.yahoo.com>
On Wed, Oct 15, 2003 at 01:10:57PM -0700, Jack J wrote:
> Hi,
>
> I am new to gdb mailing list.
> I have a question and if this list is not appropriate,
> please apologize. I am hoping someone can shed some
> light with helpful tips and pointers.
>
> question: How do I set a breakpoint in a module/code
> which is dynamically linked/loaded in Linux ?
>
> I tried setting a breaking point (in gdb) after
> dlsym() but, gdb still complains of function not
> found.
> I did have it compiled with "-g" gcc option.
>
> -- gdb output--
>
> (gdb) b test_routine
> Function "test_routine" not defined.
> (gdb) l test_routine
> Function "test_routine" not defined.
Once the library has been loaded you should be able to. Can you build
a small testcase, and a complete session transcript that show the
problem?
Does "info shared" show the module?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer