Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » debug w/ MinGW-W64 & oxygen(Can compile & run, but not debug using gdb)
debug w/ MinGW-W64 & oxygen [message #1782503] Sun, 25 February 2018 00:45 Go to next message
Jason Laks is currently offline Jason LaksFriend
Messages: 2
Registered: February 2018
Junior Member
Hi All-

Has anyone got the Oxygen debugger to work w/ MinGW-W64? I am able to compile and run, but not debug.

I am working with:

Oxygen.2 Release (4.7.2)
Build id: 20171218-0600

and:

MinGW-W64
version: 7.2.0
arch: x86_64
Threads: posix
Exception: seh
Build Revision: 1

Simple programs compile and run, but debugging runs into the following error:

index.php/fa/32175/0/

I've set up the run/debug in the same fashion as the paths for build (as shown below)

Thanks in advance for help anyone can provide.
-J

index.php/fa/32176/0/
  • Attachment: gdbError.PNG
    (Size: 17.46KB, Downloaded 1474 times)
  • Attachment: runDebug.PNG
    (Size: 52.33KB, Downloaded 1608 times)
Re: debug w/ MinGW-W64 & oxygen [message #1782582 is a reply to message #1782503] Mon, 26 February 2018 16:55 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You should learn what the termination values actually mean.
Here are some common ones:
https://blogs.msdn.microsoft.com/joshpoley/2011/06/13/common-process-termination-values/

0xC0000135 means a DLL didn't initialize properly and often means a needed one couldn't be found.
The hard part is finding out which DLL is the cause.
Some possibilities:
https://stackoverflow.com/questions/475148/how-do-i-find-out-which-dlls-an-executable-will-load
https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls

You should also understand how Windows searches for DLL's.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586


You shouldn't have to add MinGW to the path.
It's usually in your execution path after installation.
I use MinGW and have never had to add it to the path.
CDT prepends the home directory for MinGW and MSYS to the path for run/debug

[Updated on: Mon, 26 February 2018 17:25]

Report message to a moderator

Re: debug w/ MinGW-W64 & oxygen [message #1782702 is a reply to message #1782582] Wed, 28 February 2018 04:19 Go to previous messageGo to next message
Jason Laks is currently offline Jason LaksFriend
Messages: 2
Registered: February 2018
Junior Member
Thanks for the suggestions and links, David. The dependency walker will come in extremely handy.

Since the original post, I have switched from a laptop to a desktop, reinstalled oxygen.2 and MinGW64 and viola, no problems. At this point I am very happy to have a working alternative to Visual C, but the issue is still a little muddy, since the program in question is basically as follows:

int main()
{
	return 0;
}


I don't understand how this program would reference any dll's.

To be sure, I will re-post after working w/ the laptop and checking DLL dependencies on the exe it produces.

-J
Re: debug w/ MinGW-W64 & oxygen [message #1782891 is a reply to message #1782702] Sat, 03 March 2018 19:46 Go to previous message
Alin Pilkington is currently offline Alin PilkingtonFriend
Messages: 6
Registered: November 2017
Junior Member
Have you tried running Eclipse as an Administrator? I get similar debugger errors if I don't...
Previous Topic:Indexer's extern "C" confusion
Next Topic:ANT File Error (Time Sensitive)
Goto Forum:
  


Current Time: Fri Apr 19 02:39:38 GMT 2024

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

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

Back to the top