gpt4 book ai didi

How can I fix the Eclipse error "Unable to execute MI command: -exec-run" (path error) that occurs debugging a CygWin64 app?(如何修复调试CygWin64应用程序时出现的“Unable to Execute MI Command:-exec-Run”(无法执行MI命令:-exec-run)(路径错误)?)

转载 作者:bug小助手 更新时间:2023-10-25 13:27:08 30 4
gpt4 key购买 nike



When I try to debug any application - even hello.c - using Eclipse 2023-06 under Windows 10/11 I always get the error:

当我尝试在Windows 10/11下使用Eclipse 2023-06调试任何应用程序(甚至是hello.c)时,我总是收到以下错误:


[![Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/Users/sirjo/Desktop/C:/Users/sirjo/eclipse-workspace/hello2/C:/Users/sirjo/eclipse-workspace/hello2/Debug/hello2.exe, (error 2).
Failed to execute MI command:
-exec-run]

error that clearly indicates - (error 2) - that the path is wrong.

该错误清楚地指示-(错误2)-路径是错误的。


I tried to search the internet for solutions, but none of the ones I found solved the problem; I also tried to change various configurations, but without getting a working solution.

我试图在互联网上搜索解决方案,但没有一个解决问题;我也试图更改各种配置,但没有得到有效的解决方案。


Can anyone tell me what preferences or files I need to modify to get Eclipse to allow me proper debugging of Cygwin64 C/C++ applications on a Windows10/11 system?

谁能告诉我,我需要修改哪些首选项或文件才能让Eclipse允许我在Windows10/11系统上正确调试Cygwin64 C/C++应用程序?


enter image description here


更多回答

I'm having the same problem already from previous versions. I also didn't find adequate answers, so I debug in a Linux VM :) . I also searched through various eclipse files and configurations, but to no avail :(

我已经遇到了与以前版本相同的问题。我也没有找到足够的答案,所以我在Linux VM:)上调试。我还搜索了各种eclipse文件和配置,但无济于事:(

优秀答案推荐

After wasting a few days and reading a few things I think I figured out that it's the GDB/MI interface of some GDB versions of Cygwin higher than 9.2 that doesn't work properly with Eclipse (2023-06) under Windows 10/11.

在浪费了几天时间并阅读了一些东西后,我想我发现是一些高于9.2的GDB版本的Cygwin的GDB/MI接口在Windows10/11下不能与Eclipse(2023-06)一起正常工作。


I was able, albeit with other easily configurable additional problems, to debug C/C++ programs in Eclipse (2023-06) using the 9.2 version of GDB for Cygwin.

我能够使用GDB for Cygwin的9.2版本在Eclipse(2023-06)中调试C/C++程序,尽管存在其他容易配置的问题。


I add that under Linux the debugging of C/C++ applications using Eclipse 2023-06 works with all the latest versions of GDB.

我补充说,在Linux下,使用Eclipse 2023-06调试C/C++应用程序可以在所有最新版本的GDB上运行。


更多回答

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com