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:
parent
021e897699
commit
0b7da80fc4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue