'试图用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.
答
我设法通过指定的.gdbinit
的全路径摆脱这种错误的文件在Run > Debug Configurations... > C/C++ Application > emacs-26.0.50.1 > Debugger > GDB command file:
文本框中。
我现在得到一个不同的错误,但这是另外一个问题一个问题...
谢谢。实际上,我对Eclipse感到非常沮丧,因此我抛弃了它,转而使用NetBeans,这非常棒。 –