Adding an auxiliary shared library to a debug session

Daniel Jacobowitz drow@false.org
Mon Nov 9 07:44:00 GMT 2009


On Sun, Nov 08, 2009 at 01:25:51PM +0200, Andriy Symonovych wrote:
> I'm trying to add some shared library to GDB session to be able to
> call functions from it.
> The only possible way I found is to execute program with
> LD_PRELOAD=/path/to/aux/lib and attach with gdb to it's process.
> Is there any another way?

Try using "set env"?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list