I run a program with LD_PRELOADing a specific library. Like this.
LD_PRELOAD=./my.so ./my_program
How do I run this program with gdb<
gdb<
Do the following.
gdb your_program (gdb) set environment LD_PRELOAD ./yourso.so (gdb) start