forked from qt-creator/qt-creator
Debugger[CDB]: Wire stderr/stdout output.
This commit is contained in:
@@ -152,10 +152,10 @@ bool CdbDebugEnginePrivate::init(QString *errorMessage)
|
||||
manager(), SLOT(showDebuggerOutput(int,QString)));
|
||||
connect(output, SIGNAL(debuggerInputPrompt(int,QString)),
|
||||
manager(), SLOT(showDebuggerInput(int,QString)));
|
||||
connect(output, SIGNAL(debuggeeOutput(QString)),
|
||||
manager(), SLOT(showApplicationOutput(QString)));
|
||||
connect(output, SIGNAL(debuggeeInputPrompt(QString)),
|
||||
manager(), SLOT(showApplicationOutput(QString)));
|
||||
connect(output, SIGNAL(debuggeeOutput(QString,bool)),
|
||||
manager(), SLOT(showApplicationOutput(QString,bool)));
|
||||
connect(output, SIGNAL(debuggeeInputPrompt(QString,bool)),
|
||||
manager(), SLOT(showApplicationOutput(QString,bool)));
|
||||
|
||||
setDebugEventCallback(DebugEventCallbackBasePtr(new CdbDebugEventCallback(m_engine)));
|
||||
updateCodeLevel();
|
||||
|
@@ -79,7 +79,7 @@ STDMETHODIMP CdbDebugEventCallback::Exception(
|
||||
const bool fatal = isFatalException(Exception->ExceptionCode);
|
||||
if (debugCDB)
|
||||
qDebug() << Q_FUNC_INFO << "\nex=" << Exception->ExceptionCode << " fatal=" << fatal << msg;
|
||||
m_pEngine->manager()->showApplicationOutput(msg);
|
||||
m_pEngine->manager()->showApplicationOutput(msg, true);
|
||||
m_pEngine->manager()->showDebuggerOutput(LogMisc, msg);
|
||||
m_pEngine->m_d->notifyException(Exception->ExceptionCode, fatal, msg);
|
||||
return S_OK;
|
||||
|
@@ -81,10 +81,10 @@ void CdbDebugOutput::output(ULONG mask, const QString &msg)
|
||||
emit debuggerInputPrompt(logChannel(mask), msg);
|
||||
break;
|
||||
case DebuggeeOutput:
|
||||
emit debuggeeOutput(msg);
|
||||
emit debuggeeOutput(msg, true);
|
||||
break;
|
||||
case DebuggeePromptOutput:
|
||||
emit debuggeeInputPrompt(msg);
|
||||
emit debuggeeInputPrompt(msg, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -50,8 +50,8 @@ protected:
|
||||
signals:
|
||||
void debuggerOutput(int channel, const QString &message);
|
||||
void debuggerInputPrompt(int channel, const QString &message);
|
||||
void debuggeeOutput(const QString &message);
|
||||
void debuggeeInputPrompt(const QString &message);
|
||||
void debuggeeOutput(const QString &message, bool onStderr);
|
||||
void debuggeeInputPrompt(const QString &message, bool onStderr);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
Reference in New Issue
Block a user