1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Fix compile error due to 1.6 compatability.

This commit is contained in:
Doug Schaefer 2007-04-30 11:46:30 +00:00
parent 021e897699
commit 0b7da80fc4

View file

@ -50,10 +50,10 @@ public class MinGWDebuggerPage extends StandardGDBDebuggerPage {
for (int i = 0; i < dirs.length; ++i) {
IPath gdbPath = new Path(dirs[i]).append("gdb.exe"); //$NON-NLS-1$
File gdbFile = gdbPath.toFile();
if (gdbFile.canExecute())
if (gdbFile.exists())
return gdbPath.toOSString();
}
}
}
} catch (CoreException e) {
}