summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-10-08 16:14:25 +0200
committercon <qtc-committer@nokia.com>2009-10-08 18:57:12 +0200
commitb519844164d7b6be786484879accc8bb3260982f (patch)
treec8c74c6148533dca90b5c796f0ba1c05fd4f76b0
parent53b3c76b171e1976861147711b256746ceb7059b (diff)
downloadqt-creator-b519844164d7b6be786484879accc8bb3260982f.tar.gz
debugger: fix pid parsing on mac
(cherry picked from commit c6de8d457b925f2e02469d35a0afff7aad339e62)
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index a45e320864..5dc45f8394 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -517,8 +517,9 @@ void GdbEngine::handleResponse(const QByteArray &buff)
static QRegExp re1(_("New .hread 0x[0-9a-f]+ \\(LWP ([0-9]*)\\)"));
// MinGW 6.8: [New thread 2437.0x435345]
static QRegExp re2(_("New .hread ([0-9]+)\\.0x[0-9a-f]*"));
- // Mac: [Switching to process 9294 local thread 0x2e03]
- static QRegExp re3(_("Switching to process ([0-9]+) local thread"));
+ // Mac: [Switching to process 9294 local thread 0x2e03] or
+ // [Switching to process 31773]
+ static QRegExp re3(_("Switching to process ([0-9]+)"));
QTC_ASSERT(re1.isValid() && re2.isValid(), return);
if (re1.indexIn(_(data)) != -1)
maybeHandleInferiorPidChanged(re1.cap(1));