debugger: make location markers engine-specific

This commit is contained in:
hjk
2010-12-14 12:21:29 +01:00
parent d31fcda258
commit b90bb97fa9
7 changed files with 93 additions and 101 deletions

View File

@@ -72,7 +72,9 @@ ModulesWindow::ModulesWindow(QWidget *parent)
void ModulesWindow::moduleActivated(const QModelIndex &index)
{
debuggerCore()->gotoLocation(index.data().toString());
DebuggerEngine *engine = debuggerCore()->currentEngine();
QTC_ASSERT(engine, return);
engine->gotoLocation(index.data().toString());
}
void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
@@ -85,6 +87,7 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
name = index.data().toString();
DebuggerEngine *engine = debuggerCore()->currentEngine();
QTC_ASSERT(engine, return);
const bool enabled = engine->debuggerActionsEnabled();
const unsigned capabilities = engine->debuggerCapabilities();
@@ -167,7 +170,7 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
else if (act == actLoadSymbolsForModule)
engine->loadSymbols(name);
else if (act == actEditFile)
debuggerCore()->gotoLocation(name);
engine->gotoLocation(name);
else if (act == actShowModuleSymbols)
engine->requestModuleSymbols(name);
}