forked from qt-creator/qt-creator
Debugger: Use TreeModel for ModulesHandler
Change-Id: I831f71e7441330e2a6a7f3ddcf89a29517b3b91b Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -402,7 +402,8 @@ void PdbEngine::handleListModules(const PdbResponse &response)
|
||||
{
|
||||
GdbMi out;
|
||||
out.fromString(response.data.trimmed());
|
||||
Modules modules;
|
||||
ModulesHandler *handler = modulesHandler();
|
||||
handler->beginUpdateAll();
|
||||
foreach (const GdbMi &item, out.children()) {
|
||||
Module module;
|
||||
module.moduleName = _(item["name"].data());
|
||||
@@ -417,9 +418,9 @@ void PdbEngine::handleListModules(const PdbResponse &response)
|
||||
path = _("(builtin)");
|
||||
}
|
||||
module.modulePath = path;
|
||||
modules.append(module);
|
||||
handler->updateModule(module);
|
||||
}
|
||||
modulesHandler()->setModules(modules);
|
||||
handler->endUpdateAll();
|
||||
}
|
||||
|
||||
void PdbEngine::requestModuleSymbols(const QString &moduleName)
|
||||
|
||||
Reference in New Issue
Block a user