1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 07:25:23 +02:00

[261700] Temporary fix for Cygwin, until GDB 7.0 is released

This commit is contained in:
Marc Khouzam 2009-01-20 19:36:02 +00:00
parent 5dd45e2b71
commit 9d0cfcfdb2

View file

@ -226,6 +226,12 @@ public class LaunchUtils {
Matcher matcher = pattern.matcher(line); Matcher matcher = pattern.matcher(line);
if (matcher.find()) { if (matcher.find()) {
version = matcher.group(2); version = matcher.group(2);
// Temporary for cygwin, until GDB 7 is released
// Any cygwin GDB staring with 6.8 should be treated as plain 6.8
if (line.toLowerCase().indexOf("cygwin") != -1 &&
version.startsWith("6.8")) {
version = "6.8";
}
} }
} }
} catch (IOException e) { } catch (IOException e) {