Debugger: Always sort local variables alphabetically.

It was there for GDB at a time, but never for the other backends.
Fix the GDB regression and make the sorting consistent across
backends.

Task-number: QTCREATORBUG-15296
Change-Id: If728c65f0c8ca4a8378c7cf5e53f1dadbfb72b29
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-04-05 13:27:24 +02:00
parent 9bc60e0b9d
commit e73a9c1b0d
5 changed files with 62 additions and 51 deletions

View File

@@ -513,14 +513,7 @@ void PdbEngine::refreshLocals(const GdbMi &vars)
{
WatchHandler *handler = watchHandler();
handler->resetValueCache();
const bool sortStructMembers = boolSetting(SortStructMembers);
foreach (const GdbMi &child, vars.children()) {
WatchItem *item = new WatchItem;
item->parse(child, sortStructMembers);
handler->insertItem(item);
}
handler->insertItems(vars);
handler->notifyUpdateFinished();
DebuggerToolTipManager::updateEngine(this);