Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to debug with Neon and TDM-GCC
Unable to debug with Neon and TDM-GCC [message #1774965] Mon, 23 October 2017 01:04 Go to next message
Bruce Kelly is currently offline Bruce KellyFriend
Messages: 2
Registered: October 2014
Junior Member
Windows 7 64-bit
Eclipse Neon.2 (4.6.2) 64-bit
TDM-GCC 5.1.0-2 64-bit

When I try to debug a C program I get the following error:

Could not determine GDB version using command: C:\TDM-GCC-64\bin\gdb.exe --version
gdbwrapper: AssignProcessToJobObject failed

If I run the same command from the command line I get:

C:\Windows\System32>C:\TDM-GCC-64\bin\gdb.exe --version
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http...
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http...
Find the GDB manual and other documentation resources online at:
http...
For help, type "help".
Type "apropos word" to search for commands related to "word".

I can debug from the command line, but it would be easier if I could do it in Eclipse.

Any assistance would be appreciated.

There is an entry in the Eclipse log:
java.lang.Exception: gdbwrapper: AssignProcessToJobObject failed

at org.eclipse.cdt.dsf.gdb.launching.GdbLaunch.getGDBVersion(GdbLaunch.java:559)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugSession(GdbLaunchDelegate.java:142)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugger(GdbLaunchDelegate.java:101)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launch(GdbLaunchDelegate.java:90)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

[Updated on: Mon, 23 October 2017 09:57]

Report message to a moderator

Re: Unable to debug with Neon and TDM-GCC [message #1778404 is a reply to message #1774965] Wed, 13 December 2017 20:58 Go to previous messageGo to next message
Jesse Hopkins is currently offline Jesse HopkinsFriend
Messages: 1
Registered: December 2017
Junior Member
Bruce,

Did you ever resolve this? I am hitting the exact same problem today with Oxygen, TDM-GCC using gdb 7.9.1.

As you said, I can start gdb manually from a command prompt just fine, but when attempting to start a debug session from Eclipse, it fails with an error message:

Could not determine GDB version using command: C:\TDM-GCC-64\bin\gdb.exe --version
gdbwrapper: AssignProcessToJobObject failed
Re: Unable to debug with Neon and TDM-GCC [message #1778534 is a reply to message #1778404] Fri, 15 December 2017 21:49 Go to previous message
Bruce Kelly is currently offline Bruce KellyFriend
Messages: 2
Registered: October 2014
Junior Member
Unfortunately I haven't managed to do so.

I suspect it is something to do with the output from the command.
I was going to check the source code but I couldn't find a packaged version of the source and I didn't want to download the complete repository.

I have downloaded Oxygen and I get the same result, which is what I expected.

One thing I haven't tried is to see if I could find a different compiled copy of gdb.
I'm not sure if the output from the command was changed when TDM compiled it.

Namaste, Bruce
Previous Topic:Resolve path inconsistencies in C++ Indexer
Next Topic:Arduino 3.0 Plugin - corrupted makefiles?
Goto Forum:
  


Current Time: Sat Dec 16 18:56:26 GMT 2017

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

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