Eclipse CDT: cannot debug or terminate application

Posted by Paul Lammertsma on Stack Overflow See other posts from Stack Overflow or by Paul Lammertsma
Published on 2010-03-29T13:12:45Z Indexed on 2010/04/03 21:13 UTC
Read the original article Hit count: 357

Filed under:
|
|
|
|

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.

(imageshack) Debug view in 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):

(imageshack) Process tree of Eclipse

© Stack Overflow or respective owner

Related posts about eclipse-cdt

Related posts about cygwin