News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Selecting the correct debug target

Started by tetburr, May 27, 2010, 12:08:29 PM

Previous topic - Next topic

tetburr

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

Jenna

A starting point would be to tell us which version of C::B and which distro you use.

tetburr

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

Jenna

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).