'试图用Eclipse调试GNU项目时'执行MI命令失败:-exec-run'错误

问题描述:

我希望在我的macOS Sierra上的Eclipse IDE中为C/C++调试GNU Emacs。我使用Git下载了源代码,并通过命令行成功构建了项目。然后,我使用GNU autotools工具链设置将项目导入Eclipse作为现有的Makefile项目。'试图用Eclipse调试GNU项目时'执行MI命令失败:-exec-run'错误

我现在可以从Eclipse运行Emacs GUI。然而,当我尝试调试它(使用gdb),我收到以下错误信息:

'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. 

Error message

我设法通过指定的.gdbinit路径摆脱这种错误的文件在Run > Debug Configurations... > C/C++ Application > emacs-26.0.50.1 > Debugger > GDB command file:文本框中。

我现在得到一个不同的错误,但这是另外一个问题一个问题...

我有一个类似的错误信息,而使用调试器的小虚设码。我使用了this link中的建议,并修复了它。总之,我不得不将调试器更改为较旧的调试器。如果你仍然有同样的问题,希望有所帮助。

+0

谢谢。实际上,我对Eclipse感到非常沮丧,因此我抛弃了它,转而使用NetBeans,这非常棒。 –