Debugger: Execute commandsAfterConnect also when using cdb.

Change-Id: If7147c882f3185fee98c00047fb9a182e62ef903
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Schulz
2014-03-26 13:24:25 +01:00
parent 9229873c94
commit 51a2717f9a

View File

@@ -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);