title: Eclipse CDT: cannot debug or terminate application
body: <p>I have Eclipse set up fairly nicely to run the G++ compiler through Cygwin. Even <a href="https://stackoverflow.com/questions/2443991/g-curly-quotes-displayed-incorrectly-in-console-and-problems-list">the character encoding is set up correctly</a>!</p>
  
  <p>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 <code>gdb</code> is simply not communicating with Eclipse.</p>
  
  <p><a href="https://i.stack.imgur.com/YUqJw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YUqJw.png" alt="(imageshack) Debug view in Eclipse"></a>
  </p>
  
  <p>Presently, I have the debug settings as follows:</p>
  
  <blockquote>
    <p>Debugger: "Cygwin gdb Debugger"</p>
    
    <p>GDB debugger: gdb</p>
    
    <p>GDB command file: .gdbinit</p>
    
    <p>Protocol: Default</p>
  </blockquote>
  
  <p>I should mention here that I have no idea what <code>.gdbinit</code> does; in my project it is merely an empty file.</p>
  
  <p>What is wrong with my configuration?</p>
  
  <h2>Debugging</h2>
  
  <p>When attempting to terminate the application in debug mode, Eclipse displays the following error:</p>
  
  <blockquote>
    <p>Target request failed: failed to interrupt.</p>
  </blockquote>
  
  <p>I can't kill the process, either; I have to kill its parent <code>gdb.exe</code>, which in turn kills my application.</p>
  
  <h2>Running</h2>
  
  <p>When running it normally, a bunch of <code>kill.exe</code>s are called, doing nothing, while Eclipse displays the following error:</p>
  
  <blockquote>
    <p>Terminate failed.</p>
  </blockquote>
  
  <p>I can kill <code>FaceDetector.exe</code> from the task manager.</p>
  
  <h2>Process Explorer</h2>
  
  <p>This is what it looks like in Process Explorer (debugging left, running right):</p>
  
  <p><a href="https://i.stack.imgur.com/tbiVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tbiVz.png" alt="(imageshack) Process tree of Eclipse"></a>
  </p>