forked from qt-creator/qt-creator
Symbian: Some small fixes in CODA debugging
This commit is contained in:
@@ -299,7 +299,7 @@ void CodaGdbAdapter::handleTargetRemote(const GdbResponse &record)
|
||||
if (debug)
|
||||
qDebug() << "handleTargetRemote" << m_session.toString();
|
||||
} else {
|
||||
QString msg = tr("Connecting to TRK server adapter failed:\n")
|
||||
QString msg = tr("Connecting to CODA server adapter failed:\n")
|
||||
+ QString::fromLocal8Bit(record.data.findChild("msg").data());
|
||||
m_engine->notifyInferiorSetupFailed(msg);
|
||||
}
|
||||
@@ -1232,7 +1232,7 @@ void CodaGdbAdapter::shutdownAdapter()
|
||||
m_engine->notifyAdapterShutdownOk();
|
||||
} else {
|
||||
// Something is wrong, gdb crashed. Kill debuggee (see handleDeleteProcess2)
|
||||
if (m_codaDevice->device()->isOpen()) {
|
||||
if (m_codaDevice && m_codaDevice->device()->isOpen()) {
|
||||
logMessage("Emergency shutdown of CODA", LogError);
|
||||
sendRunControlTerminateCommand();
|
||||
}
|
||||
|
||||
@@ -144,9 +144,8 @@ bool CodaRunControl::setupLauncher()
|
||||
codaSocket->connectToHost(m_address, m_port);
|
||||
m_state = StateConnecting;
|
||||
appendMessage(tr("Connecting to %1:%2...").arg(m_address).arg(m_port), NormalMessageFormat);
|
||||
|
||||
}
|
||||
QTimer::singleShot(4000, this, SLOT(checkForTimeout()));
|
||||
QTimer::singleShot(5000, this, SLOT(checkForTimeout()));
|
||||
if (debug)
|
||||
m_codaDevice->setVerbose(debug);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user