aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2009-08-24 14:11:47 +0200
committercon <qtc-committer@nokia.com>2009-08-24 14:51:20 +0200
commit3dd39c1da4d6f610004d73c1a04f7cb041b82a0c (patch)
tree85d5b85b052104e8b43f9555e44d82c5d9947012
parent670a1a6b6a509fffdd26315fa0d6334f89c9bdd1 (diff)
Threads are supported on Mac.
Reviewed-by: hjk (cherry picked from commit 11e65c1bbd2d336e6f11fe1bbfd9b96b1459ebbc)
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 23e0b23038..2dc8dd5cc7 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;
}