mingw is c:\wingw
codeblocks is on c:\bin\codeblocks
I made some tests exactly now: old code (from 4.1.1) are debuged normally. Issue is with debug version from 4.1.2
I attached some project, it is placed in c:\MinGW\projects\hello_tst\
Errors with lost connection gdb<-> codeblocks recovered by rollback to older svn.
Here are the steps I took to duplicate your setup as closely as possible:
1. Downloaded
CB_20070305_rev3665_win32.7z (the latest nightly at the time of your post) and
wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch_version3.7z and extracted them to C:\bin\codeblocks
2. Created empty directory C:\mingw and extracted binutils-2.17.50-20060824-1.tar.gz, mingw32-make-3.81-1.tar.gz, mingw-runtime-3.11.tar.gz, w32api-3.7.tar.gz, and gdb-6.3-2.exe there
3. Removed references to my main MinGW installation from my PATH environment variable (as a result of which I also needed to copy mingwm10.dll to C:\bin\codeblocks)
4. Extracted "hello_tst.7z" to C:\hello_tst
5. Ran the newly installed nightly build
6. Went to Settings->Compiler and debugger, removed all paths in "Search directories" and changed "Compiler's installation directory" to "C:\mingw"
7. Opened C:\hello_tst\hello_tst.cbp (here I was informed that the project was in the older 1.5 format and would be upgraded to the 1.6 format)
8. Built the project with Ctrl+F9 (no errors, created hello_tst.exe)
9. Hit F8 to debug the program; no errors, exited normally with status code 0
As you can see, everything worked correctly for me.
Some thoughts:
- Using what was the latest nightly at the time of your post ("svn build rev 3665 (2007-02-10 13:44:04) gcc 3.4.5 Windows/unicode"), Code::Blocks informed me that your provided sample project's version was older than the current internal version, and updated it. Although I doubt this is the source of your problem, you should still try recreating your project from scratch, or at least saving it in the newer version.
- Did you overwrite any of the files from my GCC 4.1.2 with the files from the rest of the MinGW archives? If so, try re-extracting my .7z into your MinGW directory and overwriting files as necessary.
- Are all the paths and executables in C::B's compiler settings correct?