forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user