forked from qt-creator/qt-creator
Debugger: Execute commandsAfterConnect also when using cdb.
Change-Id: If7147c882f3185fee98c00047fb9a182e62ef903 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user