Debugger: Fix red display of changed variables with LLDB

That was a recent regression: All values were red ("changed").

Change-Id: Ib77c1aefa978832aad58b06eb73778a5654998bb
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-04-15 18:46:10 +02:00
parent ba947fbb9e
commit 87c8772d7f

View File

@@ -868,13 +868,14 @@ void LldbEngine::assignValueInDebugger(WatchItem *,
void LldbEngine::updateWatchItem(WatchItem *)
{
updateLocals();
doUpdateLocals(UpdateParameters());
}
void LldbEngine::updateLocals()
{
UpdateParameters params;
doUpdateLocals(params);
watchHandler()->resetValueCache();
watchHandler()->notifyUpdateStarted();
doUpdateLocals(UpdateParameters());
}
void LldbEngine::doUpdateLocals(UpdateParameters params)
@@ -923,7 +924,6 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
m_lastDebuggableCommand = cmd;
m_lastDebuggableCommand.args.replace("\"passexceptions\":0", "\"passexceptions\":1");
watchHandler()->notifyUpdateStarted();
runCommand(cmd);
reloadRegisters();