Help with debugging LD_PRELOADed shared C libraries

Daniel Jacobowitz drow@false.org
Thu Jul 13 17:05:00 GMT 2006


On Thu, Jul 13, 2006 at 06:46:58PM +0200, Thomas Ackermann wrote:
> I tried "export LD_PRELOAD=/.../mylib.so" and then started "gdb mybin
> core" or tried to set it within gdb: "set environment
> LD_PRELOAD /.../mylib.so" and then continue with "file mybin" and "core
> core", but:

If you're using a core file, the environment doesn't matter.  The
libraries should be loaded automatically.

Does info shared show something reasonable-looking?

Are you sure that core dumps work on this system?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list