Unable to debug with Neon and TDM-GCC [message #1774965] |
Sun, 22 October 2017 21:04  |
Eclipse User |
|
|
|
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 05:57] by Moderator
|
|
|
|
|
|
Re: Unable to debug with Neon and TDM-GCC [message #1794237 is a reply to message #1794167] |
Mon, 27 August 2018 17:50  |
Eclipse User |
|
|
|
I think TDM is 64 bit only, but using "gdb -version" in both directories gives the same result:
C:\TDM-GCC-64\gdb64\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://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
|
|
|
Powered by
FUDForum. Page generated in 0.08697 seconds