From 178430dcd1d58b9062f727245b66a6dfeeb01f95 Mon Sep 17 00:00:00 2001 From: Filipe Azevedo Date: Tue, 17 Jan 2017 13:27:14 +0100 Subject: [PATCH] Fix inferior pid not being propagated Change-Id: I373621f78bae04f7cdcc66fcf84712acb4245014 Reviewed-by: hjk --- src/plugins/debugger/debuggerprotocol.h | 1 + src/plugins/debugger/lldb/lldbengine.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/plugins/debugger/debuggerprotocol.h b/src/plugins/debugger/debuggerprotocol.h index ceb3c9206d5..63d1b0c6dfb 100644 --- a/src/plugins/debugger/debuggerprotocol.h +++ b/src/plugins/debugger/debuggerprotocol.h @@ -105,6 +105,7 @@ public: QString toString(bool multiline = false, int indent = 0) const; qulonglong toAddress() const; int toInt() const { return m_data.toInt(); } + qint64 toLongLong() const { return m_data.toLongLong(); } void fromString(const QString &str); void fromStringMultiple(const QString &str); diff --git a/src/plugins/debugger/lldb/lldbengine.cpp b/src/plugins/debugger/lldb/lldbengine.cpp index 1a8593686bd..363ca78aa56 100644 --- a/src/plugins/debugger/lldb/lldbengine.cpp +++ b/src/plugins/debugger/lldb/lldbengine.cpp @@ -488,6 +488,8 @@ void LldbEngine::handleResponse(const QString &response) handleLocationNotification(item); else if (name == "output") handleOutputNotification(item); + else if (name == "pid") + notifyInferiorPid(item.toLongLong()); } }