Debugger: Merge GDB/LLDB process error handling

This also removes some of the "illegal" state transitions,
partially addressing QTCREATORBUG-14089.

Change-Id: I817d87a0b5e0a40285bc9b0880fef5bceaee3f16
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-03-05 11:11:32 +01:00
parent 4d2359443f
commit 39f904957a
6 changed files with 42 additions and 31 deletions

View File

@@ -903,8 +903,7 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
void LldbEngine::handleLldbError(QProcess::ProcessError error)
{
qDebug() << "HANDLE LLDB ERROR";
showMessage(_("HANDLE LLDB ERROR"));
showMessage(_("LLDB PROCESS ERROR: %1").arg(error));
switch (error) {
case QProcess::Crashed:
break; // will get a processExited() as well
@@ -947,11 +946,9 @@ QString LldbEngine::errorMessage(QProcess::ProcessError error) const
}
}
void LldbEngine::handleLldbFinished(int code, QProcess::ExitStatus type)
void LldbEngine::handleLldbFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
qDebug() << "LLDB FINISHED";
showMessage(_("LLDB PROCESS FINISHED, status %1, code %2").arg(type).arg(code));
notifyEngineSpontaneousShutdown();
notifyDebuggerProcessFinished(exitCode, exitStatus, QLatin1String("LLDB"));
}
void LldbEngine::readLldbStandardError()