forked from qt-creator/qt-creator
debugger: make alphabetic sorting of struct members optional.
Task-number: QTCREATORBUG-1608
This commit is contained in:
@@ -133,12 +133,14 @@ void GdbEngine::handleStackFramePython(const GdbResponse &response)
|
||||
|
||||
GdbMi data = all.findChild("data");
|
||||
QList<WatchData> list;
|
||||
const bool sortMembers = theDebuggerBoolSetting(SortStructMembers);
|
||||
foreach (const GdbMi &child, data.children()) {
|
||||
WatchData dummy;
|
||||
dummy.iname = child.findChild("iname").data();
|
||||
dummy.name = _(child.findChild("name").data());
|
||||
//qDebug() << "CHILD: " << child.toString();
|
||||
parseWatchData(watchHandler()->expandedINames(), dummy, child, &list);
|
||||
parseWatchData(watchHandler()->expandedINames(), dummy, child,
|
||||
sortMembers, &list);
|
||||
}
|
||||
watchHandler()->insertBulkData(list);
|
||||
//for (int i = 0; i != list.size(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user