I have Eclipse 3.0.1 with CDT 2.0.0 on WinXP with MinGW and Cygwin.
Everything works except the Debugger. I get the following message:
Failed Launching CDI Debugger
org.eclipse.cdt.debug.core.cdi.CDIException: Unable to set working
directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
directory.
org.eclipse.cdt.debug.mi.core.cdi.RuntimeOptions.setWorkingDirectory(RuntimeOptions.java:106)
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDelegate.launch(LocalCLaunchConfigurationDelegate.java:95)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Unable to set working directory:
/cygdrive/c/Eclipse/workspace/Test2: No such file or directory.
org.eclipse.cdt.debug.core.cdi.CDIException: Unable to set working
directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
directory.
org.eclipse.cdt.debug.mi.core.cdi.RuntimeOptions.setWorkingDirectory(RuntimeOptions.java:106)
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDelegate.launch(LocalCLaunchConfigurationDelegate.java:95)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
With cygwin I can cd to /cygdrive/c/Eclipse/workspace/Test2.
Some statements in the groups say that this means the debugger is
outdated. But I have GDB 5.2.1 from MinGW, which should be good.
any clue is welcome :-)
> I have Eclipse 3.0.1 with CDT 2.0.0 on WinXP with MinGW and Cygwin.
> Everything works except the Debugger. I get the following message:
[quoted text clipped - 3 lines]
> directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
> directory.
[snip]
> With cygwin I can cd to /cygdrive/c/Eclipse/workspace/Test2.
> Some statements in the groups say that this means the debugger is
> outdated. But I have GDB 5.2.1 from MinGW, which should be good.
>
> any clue is welcome :-)
Shouldn't you have used a _Windows_ path for the working dir? I don't
know the CDT plugin, but is there a way to specify the work dir for the
debugger?
Since you're running Eclipse on a Windows platform, Eclipse only knows
_Windows_ paths and a Unix/Cygwin path is likely to fail.

Signature
Regards,
Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
romanschlegel@hotmail.com - 31 Jan 2005 17:04 GMT
> Shouldn't you have used a _Windows_ path for the working dir? I don't
> know the CDT plugin, but is there a way to specify the work dir for the
> debugger?
[quoted text clipped - 8 lines]
> /__/ w_/ /__/
> / \ /_/ / \
Many thanks for your answer.
For the working dir of Eclipse, I used C:\Eclipse\workspace, but how to
set the workdir for the CDT plugin, I don't know.
It might be a problem because I installed Cygwin and MinGW in parallel.
For my Installation I found a way to debug properly. Just had to choose
a different Debugger in the debug configuration:
[Run] -> [Debug...] -> Test2 -> Debugger -> (Choose "GDB Debugger"
instead of "Cygwin GDB Debugger") -> [Debug]
Now, it works perfectly :-)