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

Debugging mixed CMake/Makefile session

Tags: None
(comma "," separated)
tcrass
Registered Member
Posts
15
Karma
0
OS
Hi there,

I'm trying to debug a CMake-based application (qtractor, to be precise -- https://github.com/rncbc/qtractor) loading a plugin which is built using a traditional Makefile (the Helm synthesizer, to be precise -- https://github.com/mtytel/helm). I successfully imported both source trees into KDevelop and can successfully build debug versions of both projects. I also can set breakpoints in the CMake-based project which also get hit when running it. However...

- When built, the Makefile-based project creates shared libraries in several plugin formats (LV2, VST) as well as a stand-alone executable. I can run the executable from within KDevelop, but all breakpoints I set keep staying in pending state and never get hit. Debugging the executable with gdb directly on the command line works fine, though.

- Same is true when trying to hit those plugin breakpoints by running the CMake-based application from within KDevelop -- they stay in the pending state although I installed the plugin's debug build at the location expected by the app. Again, the plugin's breakpoints work fine (i. e. are pending initially but get manifest when the app loads the plugin) when debugging directly with gdb.

So... what am I doing wrong? Any ideas appreciated!

Cheers --
Torsten


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]