Re: Regarding shared library and GDB



On 2007-09-27, sunil <sunil.vvn@xxxxxxxxx> wrote:
On Sep 27, 11:03 am, sunil <sunil....@xxxxxxxxx> wrote:

Am interested to debug one shared library using GDB.This shared
libarry is used by a binary (for which i doesn't have the code).I am
[...]
yes I compiled the library properly.
My problem is unable to caught the library using gdb while application
executing the library.

Strange. Why can't you catch it? Start gdb with the program. Before
issuing "run" set break point in your library function. gdb will tell
you that it does not exist and ask if you want that to be a "pending"
break point. Answer "yes". Now issue "run" comman. When the library is
loaded, gdb will try to find the specified function in it and set the
break point for you there.


--
Minds, like parachutes, function best when open
.



Relevant Pages