mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +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:
parent
f725205888
commit
63fbea0b0b
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
* Subclass can override for special need.
|
||||||
*
|
*
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
|
|
|
@ -218,7 +218,7 @@ public class LaunchUtils {
|
||||||
// GNU gdb 6.8.50.20080730
|
// GNU gdb 6.8.50.20080730
|
||||||
// GNU gdb (GDB) 6.8.50.20080730-cvs
|
// GNU gdb (GDB) 6.8.50.20080730-cvs
|
||||||
// GNU gdb (Ericsson GDB 1.0-10) 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);
|
Matcher matcher = pattern.matcher(versionOutput);
|
||||||
if (matcher.find()) {
|
if (matcher.find()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue