This forum has been archived. All content is frozen. Please use KDE Discuss instead.

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

Tags: None
(comma "," separated)
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


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]