summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/pdb/pdbengine.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-05-18 02:28:41 +0200
committerhjk <qthjk@ovi.com>2012-05-24 14:33:34 +0200
commite11a3a7697e7b432ac061277694885cf3724f25c (patch)
tree46a3140ed47b072782541d005d0edbdf1259a554 /src/plugins/debugger/pdb/pdbengine.cpp
parentc14c1248ed01f5e16975dc1082b5ce4e58052f8b (diff)
downloadqt-creator-e11a3a7697e7b432ac061277694885cf3724f25c.tar.gz
debugger: rework WatchModel
It's one model for all locals, watch, return, tooltip and inspector data. This allows more streamlined code paths and better isolation of the model data from the WatchHandler. WatchItems are now registered in a hash indexed by iname, so inames can be used as the primary handle to watch data in the WatchHandler interface. Change-Id: Idac0a808b5d785307496d1de4198a1f2e9ce3880 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/plugins/debugger/pdb/pdbengine.cpp')
-rw-r--r--src/plugins/debugger/pdb/pdbengine.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/debugger/pdb/pdbengine.cpp b/src/plugins/debugger/pdb/pdbengine.cpp
index 4c02711097..7683cd8bb3 100644
--- a/src/plugins/debugger/pdb/pdbengine.cpp
+++ b/src/plugins/debugger/pdb/pdbengine.cpp
@@ -720,14 +720,12 @@ void PdbEngine::updateAll()
void PdbEngine::updateLocals()
{
- WatchHandler *handler = watchHandler();
- handler->beginCycle(true);
-
QByteArray watchers;
//if (!m_toolTipExpression.isEmpty())
// watchers += m_toolTipExpression.toLatin1()
// + '#' + tooltipINameForExpression(m_toolTipExpression.toLatin1());
+ WatchHandler *handler = watchHandler();
QHash<QByteArray, int> watcherNames = handler->watcherNames();
QHashIterator<QByteArray, int> it(watcherNames);
while (it.hasNext()) {
@@ -831,8 +829,7 @@ void PdbEngine::handleListLocals(const PdbResponse &response)
//qDebug() << "CHILD: " << child.toString();
parseWatchData(handler->expandedINames(), dummy, child, &list);
}
- handler->insertBulkData(list);
- handler->endCycle();
+ handler->insertData(list);
}
bool PdbEngine::hasCapability(unsigned cap) const