Reply to topic

How to launch gdb with set exec-wrapper env LD_PRELOAD=

stewartj
Registered Member
Posts
6
Karma
0
My questions is:
How to launch gdb with set exec-wrapper env LD_PRELOAD=./libctrace.so in KDevelop?

When debugging without KDevelop I launch gdb as below:
gdb -iex "set exec-wrapper env LD_PRELOAD=./libctrace.so gdb" ./cppSimpleTraced

This allows me to debug executable "cppSimpleTraced" with preloaded library "libctrace.so".

I'm struggling to figure out how to configure the same debug arrangements inside the KDevelop IDE. How would you get gdb to load "./libctrace.so" before debugging " ./cppSimpleTraced" from the KDevelop IDE? This should allow me to set breakpoints in both "libctrace.so" and "cppSimpleTraced".

Thanks for you help
Stewart

Reply to topic

Bookmarks



Who is online

Registered users: armandoo, Baidu [Spider], Bing [Bot], Exabot [Bot], Google [Bot], kc1di-qrp, rbreu, satyakimandal, Sogou [Bot], vilmasolo, Yahoo [Bot]