Adding an auxiliary shared library to a debug session

Daniel Jacobowitz drow@false.org
Mon Nov 9 16:29:00 GMT 2009


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



More information about the Gdb mailing list