diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-08-24 10:07:12 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-08-24 11:18:01 +0200 |
commit | 9b544a2740e58e6b5c87fc9e406ec85fe1ca326b (patch) | |
tree | 4b57933fa83090a904b1492c36ac6afbadb0de10 | |
parent | 9e1d4f83416adaa12cbabf7306a09d990a5688ea (diff) |
QmlCpp Debugging: Only set C++ breakpoints after QML is connected (CDB)
Apply the change we did in 7c31bd6604 also for CDB. The mixed engine
directly calls attemptBreakpointSynchronization as soon as the QML engine
is connected.
Change-Id: I764f785bb5f0575a9a624e29632d21caf5dde39c
Reviewed-on: http://codereview.qt.nokia.com/3468
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
-rw-r--r-- | src/plugins/debugger/cdb/cdbengine.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 2eefdb7c1f2..6d6eec3d65c 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -827,12 +827,15 @@ void CdbEngine::setupInferior() { if (debug) qDebug("setupInferior"); - attemptBreakpointSynchronization(); - - if (startParameters().breakOnMain) { - const BreakpointParameters bp(BreakpointAtMain); - postCommand(cdbAddBreakpointCommand(bp, m_sourcePathMappings, - BreakpointModelId(-1), true), 0); + if (!isSlaveEngine()) { + // QmlCppEngine expects the QML engine to be connected before any breakpoints are hit + // (attemptBreakpointSynchronization() will be directly called then) + attemptBreakpointSynchronization(); + if (startParameters().breakOnMain) { + const BreakpointParameters bp(BreakpointAtMain); + postCommand(cdbAddBreakpointCommand(bp, m_sourcePathMappings, + BreakpointModelId(-1), true), 0); + } } postCommand("sxn 0x4000001f", 0); // Do not break on WowX86 exceptions. postCommand(".asm source_line", 0); // Source line in assembly |