Author Topic: Selecting the correct debug target  (Read 3390 times)

Offline tetburr

  • Single posting newcomer
  • *
  • Posts: 3
Selecting the correct debug target
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Selecting the correct debug target
« Reply #1 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.

Offline tetburr

  • Single posting newcomer
  • *
  • Posts: 3
Re: Selecting the correct debug target
« Reply #2 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Selecting the correct debug target
« Reply #3 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).