forked from qt-creator/qt-creator
debugger: more breakpoint refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user