debugger: move showModuleSymbols from DebuggerManager to DebuggerEngine

This commit is contained in:
hjk
2010-06-15 11:14:44 +02:00
parent 69a4ed3255
commit 12fd2a6091
9 changed files with 49 additions and 56 deletions

View File

@@ -402,7 +402,7 @@ void PdbEngine::handleListModules(const PdbResponse &response)
{
GdbMi out;
out.fromString(response.data.trimmed());
QList<Module> modules;
Modules modules;
foreach (const GdbMi &item, out.children()) {
Module module;
module.moduleName = _(item.findChild("name").data());
@@ -432,14 +432,14 @@ void PdbEngine::handleListSymbols(const PdbResponse &response)
{
GdbMi out;
out.fromString(response.data.trimmed());
QList<Symbol> symbols;
Symbols symbols;
QString moduleName = response.cookie.toString();
foreach (const GdbMi &item, out.children()) {
Symbol symbol;
symbol.name = _(item.findChild("name").data());
symbols.append(symbol);
}
manager()->showModuleSymbols(moduleName, symbols);
showModuleSymbols(moduleName, symbols);
}
//////////////////////////////////////////////////////////////////////
@@ -737,7 +737,7 @@ void PdbEngine::handleBacktrace(const PdbResponse &response)
// "-> def square(a):"
// Populate stack view.
QList<StackFrame> stackFrames;
StackFrames stackFrames;
int level = 0;
int currentIndex = -1;
foreach (const QByteArray &line, response.data.split('\n')) {