debugger: more breakpoint refactoring

This commit is contained in:
hjk
2010-04-09 16:10:06 +02:00
parent b05773923f
commit a795c69325
5 changed files with 18 additions and 18 deletions

View File

@@ -419,7 +419,7 @@ void DebuggerManager::init()
qobject_cast<QAbstractItemView *>(d->m_breakWindow);
breakView->setModel(d->m_breakHandler->model());
connect(breakView, SIGNAL(breakpointActivated(int)),
d->m_breakHandler, SLOT(activateBreakpoint(int)));
this, SLOT(activateBreakpoint(int)));
connect(breakView, SIGNAL(breakpointDeleted(int)),
d->m_breakHandler, SLOT(removeBreakpoint(int)));
connect(breakView, SIGNAL(breakpointSynchronizationRequested()),
@@ -1336,6 +1336,17 @@ void DebuggerManager::addToWatchWindow()
d->m_watchHandler->watchExpression(exp);
}
void DebuggerManager::activateBreakpoint(int index)
{
const BreakpointData *data = breakHandler()->at(index);
if (!data->markerFileName().isEmpty()) {
StackFrame frame;
frame.file = data->markerFileName();
frame.line = data->markerLineNumber();
gotoLocation(frame, false);
}
}
void DebuggerManager::breakByFunctionMain()
{
#ifdef Q_OS_WIN