Eclipse CDT: cannot debug or terminate application
- by Paul Lammertsma
I have Eclipse set up fairly nicely to run the G++ compiler through Cygwin. Even the character encoding is set up correctly!
There still seems to be something wrong with my configuration: I can't debug. The pause button in the debug view is simply disabled, and no threads appear in my application tree. It seems that gdb is simply not communicating with Eclipse.
Presently, I have the debug settings as follows:
Debugger: "Cygwin gdb Debugger"
GDB debugger: gdb
GDB command file: .gdbinit
Protocol: Default
I should mention here that I have no idea what .gdbinit does; in my project it is merely an empty file.
What is wrong with my configuration?
Debugging
When attempting to terminate the application in debug mode, Eclipse displays the following error:
Target request failed: failed to interrupt.
I can't kill the process, either; I have to kill its parent gdb.exe, which in turn kills my application.
Running
When running it normally, a bunch of kill.exes are called, doing nothing, while Eclipse displays the following error:
Terminate failed.
I can kill FaceDetector.exe from the task manager.
Process Explorer
This is what it looks like in Process Explorer (debugging left, running right):