Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse (2018-09) CDT project with Cygwin, can't debug the binary
Eclipse (2018-09) CDT project with Cygwin, can't debug the binary [message #1797063] Wed, 24 October 2018 16:56 Go to next message
Magnus Magnus is currently offline Magnus MagnusFriend
Messages: 1
Registered: October 2018
Junior Member
It seems that everything cygwin-related configured and works fine in my Eclipse project, for example Eclipse is able to invoke 'make' or 'gcc', and can even run the compiled binary and show the output in the Eclipse console window.

However, when I try to debug my binary within Eclipse, I get the following error:

Quote:

Error in final launch sequence:

Failed to execute MI command:
-exec-run
Error message from debugger back end:
During startup program exited with code 0xc0000135.
Failed to execute MI command:
-exec-run
Error message from debugger back end:
During startup program exited with code 0xc0000135.
During startup program exited with code 0xc0000135.



I do able to launch gdb from my Cygwin console, so it is installed correctly (I assume). But why it fails when I try to use it from Eclipse?
Re: Eclipse (2018-09) CDT project with Cygwin, can't debug the binary [message #1797344 is a reply to message #1797063] Tue, 30 October 2018 06:28 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
This isn't a CDT problem.
0xc0000135 i a Windows exit code meaning "Application failed to initialize properly"
usually meaning a DLL failed to load.
Unfortunately, it's not much more informative than "Error! Something went wrong!"
There a number of reasons for getting this,
You will have to systematically try the fixes.
What worked for others may not work for you.

Try Googling "causes of 0xc0000135" and "How to fix 0xc0000135".

https://blogs.msdn.microsoft.com/joshpoley/2011/06/13/common-process-termination-values/



Re: Eclipse (2018-09) CDT project with Cygwin, can't debug the binary [message #1826278 is a reply to message #1797063] Wed, 22 April 2020 17:29 Go to previous messageGo to next message
Kirk Bailey is currently offline Kirk BaileyFriend
Messages: 1
Registered: April 2020
Junior Member
What "fixed" this for me: Add the Cygwin "bin" directory to your PATH and relaunch Eclipse.
Re: Eclipse (2018-09) CDT project with Cygwin, can't debug the binary [message #1834781 is a reply to message #1826278] Tue, 17 November 2020 18:42 Go to previous message
Dave Nadler is currently offline Dave NadlerFriend
Messages: 14
Registered: December 2015
Junior Member
You can also avoid this problem by adding the linker flag -static.
That forces static linking of the support libraries so the executable is standalone.
Hope that helps someone out there,
Best Regards, Dave
Previous Topic:How to set register value in eclipse IDE
Next Topic:-std=c++17 makes things worse instead of fixing them
Goto Forum:
  


Current Time: Sat Oct 05 16:00:01 GMT 2024

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

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

Back to the top