forked from qt-creator/qt-creator
Debugger[CDB]: Introduce setting for breakpoint correction.
Make it possible to turn it off in case something goes wrong. Squeeze/polish the CDB options dialog and correct translation code of the break options. Task-number: QTCREATORBUG-6207 Change-Id: I1805558abd4478ab680b1e292bb13306b3a0ff05 Reviewed-on: http://codereview.qt-project.org/5838 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -2688,7 +2688,8 @@ void CdbEngine::attemptBreakpointSynchronization()
|
||||
}
|
||||
switch (handler->state(id)) {
|
||||
case BreakpointInsertRequested:
|
||||
if (parameters.type == BreakpointByFileAndLine) {
|
||||
if (parameters.type == BreakpointByFileAndLine
|
||||
&& m_options->breakpointCorrection) {
|
||||
if (lineCorrection.isNull())
|
||||
lineCorrection.reset(new BreakpointCorrectionContext(debuggerCore()->cppCodeModelSnapshot(),
|
||||
CPlusPlus::CppModelManagerInterface::instance()->workingCopy()));
|
||||
|
||||
Reference in New Issue
Block a user