Author Topic: Debugger does not start the correct output file/executable (TARGET_OUTPUT_FILE)  (Read 2613 times)

mariocup

  • Guest
Hi,

if you open different projects in codeblocks the debugger does not start always the correct target output file.

To reproduce the problem just follow these steps and do not perform other actions:
1. Unpack the file switching_projects.zip
2. Add an entry in the menu tools:
e.g. TARGET_OUTPUT_FILE
command: /cmd /c echo
parameter: ${TARGET_OUTPUT_FILE}
option:launch tool in new console.
2. Restart Codeblocks, so that no projects is active or open
3.  Open file Hello Serial.cbp and select Tools-> TARGET_OUTPUT_FILE
The first time everything works fine.

If you open now the project HelloSerInt.cpb it becomes active, but the start of Tools->TARGET_OUTPUT_FILE
return an empty $(TARGET_OUTPUT_FILE). The same behaviour is when you use the debugger.



[attachment deleted by admin]

mariocup

  • Guest
Hi,

I made a minimal testprogram for testing this bug and tested it with SVN 4266. Follow the steps of the previous post to reproduce the bug.

[attachment deleted by admin]

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Hi,

This may have nothing to do with your problem, but I was getting erratic debugger behavior while experimenting with gcc 4.2 and 4.3.
(I have not tried the debugger with gcc 3.4.5.) Last month, there was a MinGW Snapshot release of gdb-6.6.
After installing this release, everything seems to behave properly.
Good luck.