I have handwritten makefiles that build and run unit test executables using Cygwin g++; these unit test code for the MSP430 using the native g++ and they run on my PC from the Cygwin command line. I can use gdb from the Cygwin command line to debug these executables without problem. I'd like to set up a debug configuration in CCS to use the graphical debugger interface.
So far I have done the following:
Window > Preferences > General > Capabilities: Check box for "CDT GDB Debugging"
Window > Preferences > C/C++ > Debug > GDB: Set "GDB Debugger" to C:\cygwin64\bin\gdb.exe
Run > Debug Configurations: Create a new "C/C++ Application" debug configuration. The application is the unit test executable which was built from the Cygwin command line.
When I try to launch this debug configuration, I get the following error (Note: I replaced the actual path and filename with "<my path>/utests" and there are no spaces in the actual path or filename):
Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols C:/<my path>/utests.exe
Error message from debugger back end:
"C:/<my path>/utests.exe": not in executable format: File truncated
"C:/<my path>/utests.exe": not in executable format: File truncated
Why is this happening, and what do I need to do to get past this? I'm running CCSv6 under Windows 7. My CCS is up to date.
Thank you.