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

[299292] Version fix for Fedora GDB

This commit is contained in:
Marc Khouzam 2010-01-11 22:13:42 +00:00
parent 89fca7f409
commit c7d0fd2ccb

View file

@ -225,11 +225,12 @@ public class LaunchUtils {
// GNU gdb 6.8.50.20080730
// GNU gdb (GDB) 6.8.50.20080730-cvs
// GNU gdb (Ericsson GDB 1.0-10) 6.8.50.20080730-cvs
Pattern pattern = Pattern.compile(" gdb( \\(.*?\\))? (\\d*(\\.\\d*)*)", Pattern.MULTILINE); //$NON-NLS-1$
// GNU gdb (GDB) Fedora (7.0-3.fc12)
Pattern pattern = Pattern.compile(" gdb( \\(.*?\\))? (\\w* )?\\(?(\\d*(\\.\\d*)*)", Pattern.MULTILINE); //$NON-NLS-1$
Matcher matcher = pattern.matcher(versionOutput);
if (matcher.find()) {
version = matcher.group(2);
version = matcher.group(3);
// Temporary for cygwin, until GDB 7 is released
// Any cygwin GDB staring with 6.8 should be treated as plain 6.8
if (versionOutput.toLowerCase().indexOf("cygwin") != -1 && //$NON-NLS-1$