Debugger: Fix wrong GDB version detection for SLES

GDB version on SLES is reported as

GNU gdb (GDB; SUSE Linux Enterprise XX) Y.Z.W

So, the content between parentheses must be skipped, otherwise
the wrong digits are parsed.

Change-Id: I05eb1373bc6558dfe088c1328142ff21d48f5591
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Antonio Di Monaco
2018-02-05 18:06:01 +01:00
parent 8d7b548d9e
commit e8a8003b16

View File

@@ -438,7 +438,7 @@ void extractGdbVersion(const QString &msg,
const QChar dot(QLatin1Char('.')); const QChar dot(QLatin1Char('.'));
const bool ignoreParenthesisContent = msg.contains(QLatin1String("rubenvb")) const bool ignoreParenthesisContent = msg.contains(QLatin1String("rubenvb"))
|| msg.contains(QLatin1String("openSUSE")); || msg.contains(QLatin1String("SUSE"));
const QChar parOpen(QLatin1Char('(')); const QChar parOpen(QLatin1Char('('));
const QChar parClose(QLatin1Char(')')); const QChar parClose(QLatin1Char(')'));