* debugging dynamic link/load code on Linux
@ 2003-10-15 20:11 Jack J
2003-10-15 20:14 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Jack J @ 2003-10-15 20:11 UTC (permalink / raw)
To: gdb
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.
-----
Thanks,
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: debugging dynamic link/load code on Linux
2003-10-15 20:11 debugging dynamic link/load code on Linux Jack J
@ 2003-10-15 20:14 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-10-15 20:14 UTC (permalink / raw)
To: Jack J; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-15 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-15 20:11 debugging dynamic link/load code on Linux Jack J
2003-10-15 20:14 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox