From 11e65c1bbd2d336e6f11fe1bbfd9b96b1459ebbc Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Mon, 24 Aug 2009 14:11:47 +0200 Subject: [PATCH] Threads are supported on Mac. Reviewed-by: hjk --- src/plugins/debugger/gdb/gdbengine.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 23e0b23038f..2dc8dd5cc7d 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1325,7 +1325,8 @@ void GdbEngine::handleShowVersion(const GdbResultRecord &response, const QVarian + 100 * supported.cap(3).toInt() + 1 * supported.cap(5).toInt(); m_gdbBuildVersion = supported.cap(7).toInt(); - debugMessage(_("GDB VERSION: %1").arg(m_gdbVersion)); + debugMessage(_("GDB VERSION: %1, BUILD: %2 ").arg(m_gdbVersion) + .arg(m_gdbBuildVersion)); } //qDebug () << "VERSION 3:" << m_gdbVersion << m_gdbBuildVersion; } @@ -2649,7 +2650,10 @@ void GdbEngine::handleRegisterListValues(const GdbResultRecord &record, const QV bool GdbEngine::supportsThreads() const { - // 6.3 crashes happily on -thread-list-ids. So don't use it. +#ifdef Q_OS_MAC + return true; +#endif + // FSF gdb 6.3 crashes happily on -thread-list-ids. So don't use it. // The test below is a semi-random pick, 6.8 works fine return m_gdbVersion > 60500; } -- GitLab