debugger: fix pid parsing on mac

This commit is contained in:
hjk
2009-10-08 16:14:25 +02:00
parent 510f8ccc3d
commit c6de8d457b

View File

@@ -491,8 +491,9 @@ void GdbEngine::handleResponse(const QByteArray &buff)
static QRegExp re1(_("New .hread 0x[0-9a-f]+ \\(LWP ([0-9]*)\\)")); static QRegExp re1(_("New .hread 0x[0-9a-f]+ \\(LWP ([0-9]*)\\)"));
// MinGW 6.8: [New thread 2437.0x435345] // MinGW 6.8: [New thread 2437.0x435345]
static QRegExp re2(_("New .hread ([0-9]+)\\.0x[0-9a-f]*")); static QRegExp re2(_("New .hread ([0-9]+)\\.0x[0-9a-f]*"));
// Mac: [Switching to process 9294 local thread 0x2e03] // Mac: [Switching to process 9294 local thread 0x2e03] or
static QRegExp re3(_("Switching to process ([0-9]+) local thread")); // [Switching to process 31773]
static QRegExp re3(_("Switching to process ([0-9]+)"));
QTC_ASSERT(re1.isValid() && re2.isValid(), return); QTC_ASSERT(re1.isValid() && re2.isValid(), return);
if (re1.indexIn(_(data)) != -1) if (re1.indexIn(_(data)) != -1)
maybeHandleInferiorPidChanged(re1.cap(1)); maybeHandleInferiorPidChanged(re1.cap(1));