Skip to main content



      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 00:00 Go to next message
Eclipse UserFriend
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 08:59 Go to previous messageGo to next message
Eclipse UserFriend
It's best to ask questions about CDT on the CDT forum:

https://www.eclipse.org/forums/index.php/f/80/
Re: How to config CDT debug for cygwin? [message #1847621 is a reply to message #1847619] Tue, 02 November 2021 09:10 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 02 November 2021 22:12 Go to previous message
Eclipse UserFriend
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: Wed Jul 30 17:16:09 EDT 2025

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

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

Back to the top