Create a new "Managed make build project" called "hello".
Create a simple hello.c source file:
#include <stdio.h> int main(void) { printf("Hello world"); }
Build the project.
Create a new "DSF C/C++ Local Application" launch configuration (one with the pink icon) and set the executable and entry point to "main"
Launch and step through.
If the "source not found" page appears, the a path mapping needs to be created. This is an issue with latest cygwin gdb.
Click on the "Edit source lookup" button in the editor, or right click on the launch node in Debug View and select "Edit source lookup"
Click on the "Add..." button
Select "Path Mapping" and click OK.
Select the new "Path Mapping" source container and click the "Edit..." button.
Once again, click the "Add..." button to create a mapping.
Enter the path to map from. Look at the stack frame label in Debug view, if the filename is something like "/cygdrive/c/workspace/hello/hello.c", enter the path to the first real directory "/cygdrive/c/workspace".
Enter the correct path to the directory entered above, in the file system. In example above, it would be "C:/workspace".
Click OK three times and you'll be back in Kansas.... ehm Debug view that is.
If the source doesn't show up right away, try stepping once.
Supported Platforms
Currently only Windows with
cygwin GDB is supported.
Current Features
Launching
The "DSF C/C++Local Application" is the standard CDT launch configuration minus some of the features.
What is NOT working here is
Debugger tab: the selection of debugger back ends (gdb/mi, Cygwin gdb debugger, etc.), tThe implementation is currently hard-wired for Cygwin,
GDB/MI Debugger implementation based on DSFBuiding and Running InstructionsTo build: Install the latest milestone of Eclipse 3.3 SDK Install the latest milestone of CDT 4.0 In