Re: Regarding shared library and GDB
- From: Andrei Voropaev <avorop@xxxxxxx>
- Date: Fri, 28 Sep 2007 07:16:27 +0000 (UTC)
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
.
- References:
- Regarding shared library and GDB
- From: sunil
- Re: Regarding shared library and GDB
- From: dan . odegaard
- Re: Regarding shared library and GDB
- From: sunil
- Regarding shared library and GDB
- Prev by Date: Re: advice on how to detect time change
- Next by Date: GUI application
- Previous by thread: Re: Regarding shared library and GDB
- Next by thread: Re: Regarding shared library and GDB
- Index(es):
Relevant Pages
|