forked from qt-creator/qt-creator
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:
@@ -868,13 +868,14 @@ void LldbEngine::assignValueInDebugger(WatchItem *,
|
|||||||
|
|
||||||
void LldbEngine::updateWatchItem(WatchItem *)
|
void LldbEngine::updateWatchItem(WatchItem *)
|
||||||
{
|
{
|
||||||
updateLocals();
|
doUpdateLocals(UpdateParameters());
|
||||||
}
|
}
|
||||||
|
|
||||||
void LldbEngine::updateLocals()
|
void LldbEngine::updateLocals()
|
||||||
{
|
{
|
||||||
UpdateParameters params;
|
watchHandler()->resetValueCache();
|
||||||
doUpdateLocals(params);
|
watchHandler()->notifyUpdateStarted();
|
||||||
|
doUpdateLocals(UpdateParameters());
|
||||||
}
|
}
|
||||||
|
|
||||||
void LldbEngine::doUpdateLocals(UpdateParameters params)
|
void LldbEngine::doUpdateLocals(UpdateParameters params)
|
||||||
@@ -923,7 +924,6 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
|
|||||||
m_lastDebuggableCommand = cmd;
|
m_lastDebuggableCommand = cmd;
|
||||||
m_lastDebuggableCommand.args.replace("\"passexceptions\":0", "\"passexceptions\":1");
|
m_lastDebuggableCommand.args.replace("\"passexceptions\":0", "\"passexceptions\":1");
|
||||||
|
|
||||||
watchHandler()->notifyUpdateStarted();
|
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
|
||||||
reloadRegisters();
|
reloadRegisters();
|
||||||
|
Reference in New Issue
Block a user