How to use gdb with LD_PRELOAD
c, gcc, gdb, linux, x86-64
Solution
Do the following.
gdb your_program
(gdb) set environment LD_PRELOAD ./yourso.so
(gdb) start
Problem
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`?