Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2009-01-20 19:36:02 +0000
committerMarc Khouzam2009-01-20 19:36:02 +0000
commit9d0cfcfdb20405aaf9e5d14f2418e1c04436f26d (patch)
treeb1c91a5dee1970c1444675df17f8d541bf82e940 /dsf-gdb
parent5dd45e2b71c37d376d7e47518ca9eaa6f28ccdfa (diff)
downloadorg.eclipse.cdt-9d0cfcfdb20405aaf9e5d14f2418e1c04436f26d.tar.gz
org.eclipse.cdt-9d0cfcfdb20405aaf9e5d14f2418e1c04436f26d.tar.xz
org.eclipse.cdt-9d0cfcfdb20405aaf9e5d14f2418e1c04436f26d.zip
[261700] Temporary fix for Cygwin, until GDB 7.0 is released
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java
index 6ed13567276..1be5dceca04 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java
@@ -226,6 +226,12 @@ public class LaunchUtils {
Matcher matcher = pattern.matcher(line);
if (matcher.find()) {
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) {

Back to the top