1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

[263527] Small fix to use a reluctant pattern modifier since we now get all the output of gdb -version in a single line.

This commit is contained in:
Marc Khouzam 2009-04-13 17:53:43 +00:00
parent f725205888
commit 63fbea0b0b
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
}
/**
* Returns the GDB version on the local host.
* Returns the GDB version.
* Subclass can override for special need.
*
* @since 2.0

View file

@ -218,7 +218,7 @@ 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$
Pattern pattern = Pattern.compile(" gdb( \\(.*?\\))? (\\d*(\\.\\d*)*)", Pattern.MULTILINE); //$NON-NLS-1$
Matcher matcher = pattern.matcher(versionOutput);
if (matcher.find()) {