debugger: reduce amount of data produced by the dumpers by removing

predicatable parts.
This commit is contained in:
hjk
2009-07-10 13:40:17 +02:00
parent ef786bf32e
commit 56b24aac36
3 changed files with 20 additions and 31 deletions

View File

@@ -3419,9 +3419,14 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResultRecord &record,
setWatchDataChildCount(childtemplate, contents.findChild("childnumchild"));
//qDebug() << "DATA:" << data.toString();
insertData(data);
int i = 0;
foreach (GdbMi item, children.children()) {
WatchData data1 = childtemplate;
data1.name = _(item.findChild("name").data());
GdbMi name = item.findChild("name");
if (name.isValid())
data1.name = _(name.data());
else
data1.name = QString::number(i);
data1.iname = data.iname + _c('.') + data1.name;
if (!data1.name.isEmpty() && data1.name.at(0).isDigit())
data1.name = _c('[') + data1.name + _c(']');
@@ -3450,6 +3455,7 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResultRecord &record,
data1.setChildrenUnneeded();
//qDebug() << "HANDLE CUSTOM SUBCONTENTS:" << data1.toString();
insertData(data1);
++i;
}
}