This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Adding an auxiliary shared library to a debug session
On Mon, Nov 09, 2009 at 01:08:56PM +0200, Andriy Symonovych wrote:
> Thanks. Problem is that the process I was trying to attach to is not
> linked to libdl.so. So LD_PRELOAD remains the most reliable way.
>
> Strange why GDB have no such feature. I don't think there is any big
> problem with it.
In fact, it's nearly impossible to do. It would be very complex; it's
far easier to preload at least libdl.
--
Daniel Jacobowitz
CodeSourcery