Debugger: Remove the boolean parameter to CdbEngine::updateLocals()

Makes clang happy, and changes to a full update after manual
variable assignments, which is intended anyway.

Change-Id: I028f32e1ac9014f5d56bf12824624f7685d22c83
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2015-06-10 10:46:14 +02:00
committed by David Schulz
parent 339a8b619e
commit 277495e8cb
2 changed files with 7 additions and 8 deletions

View File

@@ -1273,7 +1273,7 @@ void CdbEngine::assignValueInDebugger(WatchItem *w, const QString &expr, const Q
postCommand(cmd, 0);
// Update all locals in case we change a union or something pointed to
// that affects other variables, too.
updateLocals(false);
updateLocals();
}
void CdbEngine::handleThreads(const CdbResponse &response)
@@ -1403,10 +1403,10 @@ void CdbEngine::activateFrame(int index)
qPrintable(frame.file), frame.line);
stackHandler()->setCurrentIndex(index);
gotoLocation(frame);
updateLocals(true);
updateLocals();
}
void CdbEngine::updateLocals(bool newFrame)
void CdbEngine::updateLocals()
{
typedef QHash<QByteArray, int> WatcherHash;
@@ -1420,7 +1420,6 @@ void CdbEngine::updateLocals(bool newFrame)
watchHandler()->removeAllData();
return;
}
if (newFrame)
watchHandler()->resetValueCache();
/* Watchers: Forcibly discard old symbol group as switching from
* thread 0/frame 0 -> thread 1/assembly -> thread 0/frame 0 will otherwise re-use it
@@ -1472,12 +1471,12 @@ void CdbEngine::updateLocals(bool newFrame)
str << blankSeparator << frameIndex;
watchHandler()->notifyUpdateStarted();
postExtensionCommand("locals", arguments, 0,
[this, newFrame](const CdbResponse &r) { handleLocals(r, newFrame); });
[this](const CdbResponse &r) { handleLocals(r, true); });
}
void CdbEngine::updateAll()
{
updateLocals(true);
updateLocals();
}
void CdbEngine::selectThread(ThreadId threadId)

View File

@@ -247,7 +247,7 @@ private:
void handleAdditionalQmlStack(const CdbResponse &response);
NormalizedSourceFileName sourceMapNormalizeFileNameFromDebugger(const QString &f);
void updateLocalVariable(const QByteArray &iname);
void updateLocals(bool forNewStackFrame);
void updateLocals();
void updateAll() override;
int elapsedLogTime() const;
void addLocalsOptions(ByteArrayInputStream &s) const;