title: 'Failed to execute MI command: -exec-run' error when trying to debug a GNU project with Eclipse
body: <p>I wish to debug GNU Emacs in Eclipse IDE for C/C++ on my macOS Sierra. I have downloaded the source code with Git and built the project successfully via the command line. I then imported the project to Eclipse as an existing Makefile project with the GNU autotools toolchain setting.</p>
  
  <p>I can now run the Emacs GUI from Eclipse. However, when I try to debug it (with gdb), I get the following error message:</p>
  
  <pre><code>'Launching emacs-26.0.50.1' has encountered a problem.
  
  Error in final launch sequence
  
  Failed to execute MI command:
  -exec-run
  Error message from debugger back end:
  During startup program terminated with signal ?, Unknown signal.
  During startup program terminated with signal ?, Unknown signal.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zOl25.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOl25.png" alt="Error message"></a></p>