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:
parent
89fca7f409
commit
c7d0fd2ccb
1 changed files with 3 additions and 2 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue