From: Jan P. <jp...@us...> - 2007-02-03 23:00:50
|
Update of /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug/local In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv10361/src/org/epic/debug/local Modified Files: LocalLaunchConfigurationDelegate.java Log Message: Fixed bug [ 1651379 ] Debugger ignores breakpoints in modules (Windows). Index: LocalLaunchConfigurationDelegate.java =================================================================== RCS file: /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug/local/LocalLaunchConfigurationDelegate.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- LocalLaunchConfigurationDelegate.java 12 Dec 2006 20:47:43 -0000 1.2 +++ LocalLaunchConfigurationDelegate.java 3 Feb 2007 23:00:46 -0000 1.3 @@ -98,8 +98,26 @@ ExecutionArguments exArgs = new ExecutionArguments(perlParams); fCmdList.addAll(exArgs.getProgramArgumentsL()); } - - fCmdList.add(getScriptPath(launch).toOSString()); + + if (isCygwin()) + { + IPath cygwinPath = getPathMapper(launch).getDebuggerPath( + getScriptPath(launch), null); + + if (cygwinPath != null) fCmdList.add(cygwinPath.toString()); + else throw new CoreException(new Status( + Status.ERROR, + PerlDebugPlugin.getUniqueIdentifier(), + Status.OK, + MessageFormat.format( + "Could not translate path {0} into a Cygwin path.\n" + + "Make sure your Cygwin mounts are configured properly.", + new String[] { getScriptPath(launch).toOSString() }), + null + )); + } + else + fCmdList.add(getScriptPath(launch).toString()); if (progParams != null && progParams.length() > 0) { |