diff options
author | hjk <qtc-committer@nokia.com> | 2011-09-29 14:46:59 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-09-29 14:50:03 +0200 |
commit | b9002dc7633a0da84fb456b0299dda1bd89c200b (patch) | |
tree | ff8f07255d3cc002f3abbf5be537a03e7299b5ca /src/plugins/debugger/breakhandler.cpp | |
parent | 1a07c183d9ee10acb6ffdaedc5a9d96e6b9acaa9 (diff) | |
download | qt-creator-b9002dc7633a0da84fb456b0299dda1bd89c200b.tar.gz |
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>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 13 |
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)); |