Debugger: Show progress indicator while updating locals.

Change-Id: I4b26cbe71f5936f367f9add2b3a6c812446835d8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
David Schulz
2015-03-06 09:14:40 +01:00
committed by hjk
parent 467c441c93
commit 40dd248178
7 changed files with 28 additions and 0 deletions

View File

@@ -1500,6 +1500,7 @@ void CdbEngine::updateLocals(bool newFrame)
// Required arguments: frame
str << blankSeparator << frameIndex;
watchHandler()->updateRequested();
postExtensionCommand("locals", arguments, 0,
[this, newFrame](const CdbResponse &r) { handleLocals(r, newFrame); });
}
@@ -1859,6 +1860,7 @@ void CdbEngine::handleRegistersExt(const CdbResponse &response)
void CdbEngine::handleLocals(const CdbResponse &response, bool newFrame)
{
if (response.success) {
watchHandler()->updateFinished();
if (boolSetting(VerboseLog))
showMessage(QLatin1String("Locals: ") + QString::fromLatin1(response.extensionReply), LogDebug);
WatchHandler *handler = watchHandler();