"PROJECT_NAME - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...but I have managed to go further for debugging
Nothing to be done.
Building to ensure sources are up-to-datealthough not by far. :-\
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\REST_OF_PATH\PROJECT_NAME\
Adding source dir: C:\Users\REST_OF_PATH\
Adding file: bin\Debug\PROJECT_NAME.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Warning: /cygdrive/c/Users/REST_OF_PATH/C: No such file or directory.
Warning: /cygdrive/c/Users/REST_OF_PATH/PROJECT_NAME/C: No such file or directory.
I have Code::Blocks 10.05 and CYGWIN_NT-6.0 1.7.9(0.237/5/3) on Windows Vista.That doesn't mean that you have installed the GCC compiler for Cygwin at all. Notice that the default Cygwin does not install the GCC compiler suite. Are you sure that in the path you setup in the tool chain (or in the "bin" folder below that path) you find the executables you setup? Do the executables have exacly the name you provided (this differs depending on what compiler suite you install under Cygwin). Also notice that the article you are referring to is just a template, surely it has to match exactly your Cygwin installation / configuration.
Attached are my current settings which were the same posting the OP...OK, I tried a nightly and a fresh installed recent Cygwin. The guide still applies, except that I had to modify the toolchain path by hand to point to the Cygwin base folder and that I had to set the executables either as "gcc-3.exe" or "gcc-4.exe" (and g++-3.exe/g++-4.exe respectively).
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\REST_OF_PATH\hello_world\
Adding source dir: C:\Users\REST_OF_PATH\
Adding file: bin\Debug\hello_world.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Warning: /cygdrive/c/Users/REST_OF_PATH/hello_world/C: No such file or directory.
Warning: /cygdrive/c/Users/REST_OF_PATH/hello_world/C: No such file or directory.
Child process PID: 6024
The program is not being run.
Debugger finished with status 0
So as my goal is to debug using Cygwin, I'm still at a loss.I don't know how well the Cygwin debugger is supported, actually. This is not a "normal" GNU debugger you know. Did you try a debugger branch nightly?
read this thread it may help
http://forums.codeblocks.org/index.php/topic,12212.0.html (http://forums.codeblocks.org/index.php/topic,12212.0.html)
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Boost\bbb\
Adding source dir: C:\Boost\bbb\
Adding file: C:\Boost\bbb\bbb.exe
Changing directory to: C:/Boost/bbb/.
[debug]PATH=.;C:\Cygwin\bin;C:\Program Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Qt\4.5.0\bin;C:\Program Files\Bazaar;C:\CodeBlocks\MinGW\bin;C:\CodeBlocks\MinGW\mingw32\bin;C:\Program Files\TortoiseSVN\bin
[debug]Command-line: C:\cygwin\bin\gdb.exe -nx -fullname -quiet -args C:/Boost/bbb/bbb.exe
[debug]Working dir : C:\Boost\bbb
Starting debugger: C:\cygwin\bin\gdb.exe -nx -fullname -quiet -args C:/Boost/bbb/bbb.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from /cygdrive/c/Boost/bbb/bbb.exe...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
[debug]Copyright (C) 2011 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-cygwin".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set debugevents on
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Users\eugene\Desktop\deb_branch\src\output\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Boost/bbb/
[debug]Warning: /cygdrive/c/Boost/bbb/C: No such file or directory.
[debug]Warning: /Boost/bbb: No such file or directory.
[debug]>>>>>>cb_gdb:
Warning: /cygdrive/c/Boost/bbb/C: No such file or directory.
[debug]> break "/cygdrive/c/Boost/bbb/main.cpp:13"
[debug]Breakpoint 2 at 0x4011d3: file C:/Boost/bbb/main.cpp, line 13.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]gdb: windows_init_thread_list
Child process PID: 4188
[debug][New Thread 4188.0x106c]
[debug][New Thread 4188.0x11ac]
[debug]Breakpoint 2, _fu1___ZSt4cout () at C:/Boost/bbb/main.cpp:13
[debug]->->/cygdrive/c/Boost/bbb/main.cpp:13:190:beg:0x4011d3
[debug]>>>>>>cb_gdb:
Cannot open file: ->->/cygdrive/c/Boost/bbb/main.cpp
At ->->/cygdrive/c/Boost/bbb/main.cpp:13
[debug]> set debugevents off
[debug]>>>>>>cb_gdb:
Continuing...
[debug]> cont
[debug][Inferior 1 (process 4188) exited normally]
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 4188) exited normally]
[debug]> quit
Debugger finished with status 0
Here is the patch: http://forums.codeblocks.org/index.php/topic,15136.msg106378.html#msg106378Notice that there is a way newer version in the patch tracker. Please do not apply this one.
If it works, I'm OK to commit it.
Do you know easy step by step instructions to get me going?
NO MORE EXCUSES! ;DI have one really strong excuse:
$ uptime
01:04:23 up 31 days, 5:40, 3 users, load average: 0,86, 0,74, 0,62
Link?Ooops - you are right. Forget about this.
I see only the patch for the compiler in there.
Also the patch is definitely incomplete.That is definitely true, for the debugger this applies, but also for the editor for example (jump to functions etc...) and also for CC. :-( The /cygdrive stuff will always be there, so a new SDK function to convert Cygwin->OS and OS->Cygwin is needed. Something like "UnixFile".
Because every place a path is sent to GDB should be made to understand cygwin paths.
Something like "UnixFile"....or how about an "alias" file name for each ProjectFile? Thus, ProjectFile gets extended and the alias is computed always and used just as needed?
resulting Windows files names where 'cygdrive' appear.You know, that it's not as easy as that, because IMHO this prefix can be changed, so it is not a "constant" replace.