LLDB: Fix opening memory view after the first use

We always need to update the editor token even if we already know about
the memory agent, because the editor behind it can change.

Change-Id: I6101b5a5c1ee0698ae7c7668d0766056a19eadb8
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2013-10-31 09:35:05 +01:00
committed by hjk
parent 0cae053d11
commit 5c6dd76b67

View File

@@ -1047,8 +1047,8 @@ void LldbEngine::fetchMemory(MemoryAgent *agent, QObject *editorToken,
if (id == -1) {
id = ++m_lastAgentId;
m_memoryAgents.insert(agent, id);
m_memoryAgentTokens.insert(id, editorToken);
}
m_memoryAgentTokens.insert(id, editorToken);
runCommand(Command("fetchMemory")
.arg("address", addr)
.arg("length", length)