summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerengine.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-07-20 09:37:54 +0200
committerhjk <hjk@theqtcompany.com>2015-07-22 11:46:32 +0000
commitd765cd73a2292ccad36837aca696808b5d2cdacd (patch)
tree3d8c27af67d3af53094ef8ade0ec39abd4704736 /src/plugins/debugger/debuggerengine.cpp
parente3c2236c266da0020bac8b1904a72d9ffc879700 (diff)
downloadqt-creator-d765cd73a2292ccad36837aca696808b5d2cdacd.tar.gz
Debugger: Recognize source data within disassembler view
... and use it to toggle breakpoints by file and line, and for jumping to file and line. Task-number: QTCREATORBUG-14278 Change-Id: I799d085eb53339905ea3608022aeae5a9aef1fda Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/debuggerengine.cpp')
-rw-r--r--src/plugins/debugger/debuggerengine.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index ef0b4427c7..950ffb1e86 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -150,8 +150,11 @@ bool LocationMark::isDraggable() const
void LocationMark::dragToLine(int line)
{
if (m_engine) {
- if (BaseTextEditor *textEditor = BaseTextEditor::currentTextEditor())
- m_engine->executeJumpToLine(getLocationContext(textEditor->textDocument(), line));
+ if (BaseTextEditor *textEditor = BaseTextEditor::currentTextEditor()) {
+ ContextData location = getLocationContext(textEditor->textDocument(), line);
+ if (location.isValid())
+ m_engine->executeJumpToLine(location);
+ }
}
}