forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user