From e8a8003b16d1b53d2d005bfd32bae53a93d23e5a Mon Sep 17 00:00:00 2001 From: Antonio Di Monaco Date: Mon, 5 Feb 2018 18:06:01 +0100 Subject: [PATCH] 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 --- src/plugins/debugger/debuggerprotocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index 8cd7d41bbe1..07f5e1658fe 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -438,7 +438,7 @@ void extractGdbVersion(const QString &msg, const QChar dot(QLatin1Char('.')); const bool ignoreParenthesisContent = msg.contains(QLatin1String("rubenvb")) - || msg.contains(QLatin1String("openSUSE")); + || msg.contains(QLatin1String("SUSE")); const QChar parOpen(QLatin1Char('(')); const QChar parClose(QLatin1Char(')'));