diff options
author | hjk <hjk@qt.io> | 2018-12-18 15:57:38 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-12-19 08:39:48 +0000 |
commit | 8669a83e162c4600754836eb836446fa8c369a96 (patch) | |
tree | 4979d58e091c6e4c74301c7d16859afd5c70d14e | |
parent | a1fbfb5513e6bbfeb1ba7b1686e9ce5034167382 (diff) | |
download | qt-creator-8669a83e162c4600754836eb836446fa8c369a96.tar.gz |
Debugger: Update global breakpoint line and file
... when a breakpoint in an active engine is moved due to
code edits.
Change-Id: Iac8102b7ac0149342ccb3fd6be6bf16172683036
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 94c8a5f1e5..c1a58a2b37 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -102,6 +102,8 @@ public: TextMark::updateLineNumber(lineNumber); QTC_ASSERT(m_bp, return); m_bp->setLineNumber(lineNumber); + if (GlobalBreakpoint gbp = m_bp->globalBreakpoint()) + gbp->m_params.lineNumber = lineNumber; } void updateFileName(const FileName &fileName) final @@ -109,6 +111,8 @@ public: TextMark::updateFileName(fileName); QTC_ASSERT(m_bp, return); m_bp->setFileName(fileName.toString()); + if (GlobalBreakpoint gbp = m_bp->globalBreakpoint()) + gbp->m_params.fileName = fileName.toString(); } bool isDraggable() const final { return true; } |