Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to config CDT debug for cygwin?(eclipse CDT plugin )
How to config CDT debug for cygwin? [message #1847592] Tue, 02 November 2021 04:00 Go to next message
Chengpu Wang is currently offline Chengpu WangFriend
Messages: 5
Registered: November 2021
Junior Member
Hi, I am new to eclipse CDT with cygwin. I just created a HelloWorld C++ project.
1) The built exe works in cygwin.
2) If I click the exe in file in file explorer, it says that it can not find cygwin1.dll. This error can be resolved by adding C:\cygwin64\bin to the Path env variable.
3) If I try to debug directly, I got the following errors:

Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/WINDOWS/system32/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/Debug/HelloWorld.exe, (error 2).

The above diagnosis seems to point to lacking of C:\cygwin64\bin, so I add C:\cygwin64\bin to Path env variable in the env var tab of the debug config, but the result is the same.

My questions:
1) How to solve this issue?
2) Where to find a list of error to decode error 2?
Re: How to config CDT debug for cygwin? [message #1847619 is a reply to message #1847592] Tue, 02 November 2021 12:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
It's best to ask questions about CDT on the CDT forum:

https://www.eclipse.org/forums/index.php/f/80/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to config CDT debug for cygwin? [message #1847621 is a reply to message #1847619] Tue, 02 November 2021 13:10 Go to previous messageGo to next message
Chengpu Wang is currently offline Chengpu WangFriend
Messages: 5
Registered: November 2021
Junior Member
I will move my question there.
Still, is there a quick answer?
Re: How to config CDT debug for cygwin? [message #1847649 is a reply to message #1847621] Wed, 03 November 2021 02:12 Go to previous message
Chengpu Wang is currently offline Chengpu WangFriend
Messages: 5
Registered: November 2021
Junior Member
It seems that the latest gdb above version 9.2-1 is wrong: https://www.eclipse.org/forums/index.php/t/1105969/
I have downgrade my gdb and gcc for cgywin to cure the issue
Previous Topic:Grey Boxes?
Next Topic:vhdl BCD to sevensegment
Goto Forum:
  


Current Time: Tue Apr 16 14:55:47 GMT 2024

Powered by FUDForum. Page generated in 0.26838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top