summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r--src/plugins/debugger/breakhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 379ad29f6d..ddcabf2e5e 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -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));