debugger: insert all children of WatchData as a single block

This commit is contained in:
hjk
2009-07-13 12:28:47 +02:00
parent e9d0285fbc
commit 25716914a5
3 changed files with 100 additions and 7 deletions

View File

@@ -3418,8 +3418,10 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResultRecord &record,
setWatchDataType(childtemplate, contents.findChild("childtype"));
setWatchDataChildCount(childtemplate, contents.findChild("childnumchild"));
//qDebug() << "DATA:" << data.toString();
insertData(data);
qq->watchHandler()->insertData(data);
int i = 0;
QList<WatchData> list;
foreach (GdbMi item, children.children()) {
WatchData data1 = childtemplate;
GdbMi name = item.findChild("name");
@@ -3454,9 +3456,10 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResultRecord &record,
if (!qq->watchHandler()->isExpandedIName(data1.iname))
data1.setChildrenUnneeded();
//qDebug() << "HANDLE CUSTOM SUBCONTENTS:" << data1.toString();
insertData(data1);
list.append(data1);
++i;
}
qq->watchHandler()->insertBulkData(list);
}
void GdbEngine::handleDebuggingHelperValue3(const GdbResultRecord &record,