forked from qt-creator/qt-creator
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:
@@ -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(')'));
|
||||||
|
Reference in New Issue
Block a user