CDT Plugin-in Development [message #1786137] |
Wed, 25 April 2018 23:50  |
Eclipse User |
|
|
|
I am new to eclipse. I compiled exe success in "Debug" folder。
Finished building target: DSP_GPIO_test.exe
11:41:51 Build Finished (took 4s.26ms)
But when I debug the program ,I get this error
org.eclipse.core.runtime.CoreException: Failed to execute MI command:
-file-exec-and-symbols D:/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe
Error message from debugger back end:
"/cygdrive/d/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe": not in executable format: ??????±???????????
at org.eclipse.cdt.dsf.concurrent.Query.get(Query.java:111)
at org.eclipse.cdt.dsf.gdb.launching.GdbMultiCoreLaunchDelegate.launchDebugSession(GdbMultiCoreLaunchDelegate.java:276)
at org.eclipse.cdt.dsf.gdb.launching.GdbMultiCoreLaunchDelegate.launchDebugger(GdbMultiCoreLaunchDelegate.java:107)
at org.eclipse.cdt.dsf.gdb.launching.GdbMultiCoreLaunchDelegate.launch(GdbMultiCoreLaunchDelegate.java:96)
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:56)
Caused by: java.lang.Exception: "/cygdrive/d/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe": not in executable format: ??????±???????????
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:943)
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:772)
!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10004 2018-04-26 11:48:43.284
!MESSAGE Failed to execute MI command:
-file-exec-and-symbols D:/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe
Error message from debugger back end:
"/cygdrive/d/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe": not in executable format: ??????±???????????
!STACK 0
java.lang.Exception: "/cygdrive/d/runtime-SocIDE/DSP_GPIO_test/Debug/DSP_GPIO_test.exe": not in executable format: ??????±???????????
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:943)
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:772)
I don't know how to solve this. Pls help me.
|
|
|
Re: CDT Plugin-in Development [message #1786165 is a reply to message #1786137] |
Thu, 26 April 2018 07:36   |
Eclipse User |
|
|
|
You did not say it, but it seems that you're attempting to create a cross-compiled executable (for a DSP, maybe), but the file extension (.exe) tells Windows that the file is a Windows executable file. This confuses the debugger, which complains that the executable is not anything it can handle.
Next time, please tell:
- which operating system you're running (Windows, OS X, Linux, else)
- which machine you're developing the program for,
- which tools you're using (GCC, MinGW, Cygwin etc..)
These cross-compilation problems may be difficult, even when there is no need to guess half of the conditions.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04246 seconds