forked from qt-creator/qt-creator
debugger: take actual breakpoints into account for source locations
Change-Id: I5cf2982812456249fca2f233514cb90bb8d3bfe0 Reviewed-on: http://codereview.qt-project.org/5799 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1259,6 +1259,19 @@ BreakpointModelIds BreakHandler::engineBreakpointIds(DebuggerEngine *engine) con
|
||||
return ids;
|
||||
}
|
||||
|
||||
QStringList BreakHandler::engineBreakpointPaths(DebuggerEngine *engine) const
|
||||
{
|
||||
QSet<QString> set;
|
||||
ConstIterator it = m_storage.constBegin(), et = m_storage.constEnd();
|
||||
for ( ; it != et; ++it) {
|
||||
if (it->engine == engine) {
|
||||
if (it->data.type == BreakpointByFileAndLine)
|
||||
set.insert(QFileInfo(it->data.fileName).dir().path());
|
||||
}
|
||||
}
|
||||
return set.toList();
|
||||
}
|
||||
|
||||
void BreakHandler::cleanupBreakpoint(BreakpointModelId id)
|
||||
{
|
||||
QTC_ASSERT(state(id) == BreakpointDead, qDebug() << state(id));
|
||||
|
||||
Reference in New Issue
Block a user