diff options
author | David Schulz <david.schulz@digia.com> | 2014-03-26 13:24:25 +0100 |
---|---|---|
committer | David Schulz <david.schulz@digia.com> | 2014-03-28 09:57:51 +0100 |
commit | 51a2717f9a3edddb11808e90a9dc88b9d1760bfd (patch) | |
tree | 9da48c9ef91e215cd1a69da74a28cf40ce27a71e | |
parent | 9229873c9418c5c996339ad4d8807b3ee91f6429 (diff) | |
download | qt-creator-51a2717f9a3edddb11808e90a9dc88b9d1760bfd.tar.gz |
Debugger: Execute commandsAfterConnect also when using cdb.
Change-Id: If7147c882f3185fee98c00047fb9a182e62ef903
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r-- | src/plugins/debugger/cdb/cdbengine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 5e4f7ba038..b9ba9dbe45 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -784,10 +784,13 @@ void CdbEngine::setupInferior() { if (debug) qDebug("setupInferior"); + const DebuggerStartParameters &sp = startParameters(); + if (!sp.commandsAfterConnect.isEmpty()) + postCommand(sp.commandsAfterConnect, 0); // QmlCppEngine expects the QML engine to be connected before any breakpoints are hit // (attemptBreakpointSynchronization() will be directly called then) attemptBreakpointSynchronization(); - if (startParameters().breakOnMain) { + if (sp.breakOnMain) { const BreakpointParameters bp(BreakpointAtMain); postCommand(cdbAddBreakpointCommand(bp, m_sourcePathMappings, BreakpointModelId(quint16(-1)), true), 0); |