Hello.
I'm having some trouble setting up the debugger. I know this kind of problem comes up a lot here, but I'm really lost and I couldn't find a previous topic / wiki page that helped me. This is what I have done:
I've downloaded Code::Blocks rev 4771 and installed MinGW with the Automated MinGW Installer (5.1.3). I have also downloaded GDB 6.6 and copied the package's contents to "c:\MinGW\". The path is set properly and compiling/building works from inside Code::Blocks. The "Toolchain Executables" at "Settings -> Compiler and Debugger Options" are pointing to the correct apps. The build target has the -g (Produce Debugging Symbols) flag set.
This is the output from building:
-------------- Build: Debug in maisum ---------------
g++.exe -Wall -fexceptions -g -g -c D:\teste\maisum\maisum\main.cpp -o obj\Debug\main.o
g++.exe -o bin\Debug\maisum.exe obj\Debug\main.o
Output size is 573.67 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
And this is what I get in the Debugger textarea when I run the app through F8:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\teste\maisum\maisum\
Adding source dir: D:\teste\maisum\maisum\
Adding file: bin\Debug\maisum.exe
Starting debugger:
failed
There is also another tab called "Debugger (Debug)" by the first Debugger tab. It has the following output:
PATH=.;C:\Arquivos de programas\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\QuickTime\QTSystem\;c:\Mingw\bin\
Command-line: c:\Mingw\bin -nx -fullname -quiet -args bin/Debug/maisum.exe
Working dir : D:\teste\maisum\maisum\
The only "strange" thing I have seen is the command-line above: "c:\Mingw\bin -nx -fullname -quiet -args bin/Debug/maisum.exe"
Shouldn't GDB be there somewhere? (i.e. "c:\Mingw\bin\gdb -nx -fullname -quiet -args bin/Debug/maisum.exe")
If so, how do I fix it?
If not, what am I missing? Any help is deeply apreciated.