Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tetburr on May 27, 2010, 12:08:29 pm

Title: Selecting the correct debug target
Post by: tetburr on May 27, 2010, 12:08:29 pm
I have two different debug targets in my project (one for plain Linux POSIX, the other for 'realtime' Linux POSIX), however sometimes codeblocks gets confused and I have to rebuild my entire workspace to make the debugger run using the correct target.  Is there somewhere I can tell the debugger which target to use, and change this easily as needed?

Process:
Working on plain code, compile plain project (Build Target: Plain Debug), run debugger:
Selecting target:
Plain Debug

Working on realtime code, compile realtime project (Build Target: Realtime Debug), run the debugger and get:
Selecting target:
Plain Debug

Recompile entire realtime workspace (Build Target: Realtime Debug), run the debugger and get:
Selecting target:
Realtime Debug

Any help or insight would be much appreciated,

Steve
Title: Re: Selecting the correct debug target
Post by: Jenna on May 27, 2010, 12:12:27 pm
A starting point would be to tell us which version of C::B and which distro you use.
Title: Re: Selecting the correct debug target
Post by: tetburr on May 27, 2010, 12:17:22 pm
A very good point, don't know what I was thinking...

Linux kernel: 2.6.32.8
Linux OS: Ubuntu 8.04
Code::Blocks: 8.02 (Build: Feb 27 2008 - wx2.8.7)

Steve
Title: Re: Selecting the correct debug target
Post by: Jenna on May 27, 2010, 12:23:44 pm
I suggest using a nightly-build (for ubuntu before 09.10 you can use my repo [see signature]) or wait for the next release (coming soon).

If I remember right there was a fix for problems with not selecting the correct target sometimes (but I'm not absolutely sure).