Removed m_codaSocketIODevice from CodaGdbAdapter

because it served no useful purpose and was causing a crash
This commit is contained in:
Tom Sutcliffe
2011-03-04 14:12:57 +01:00
committed by Pawel Polanski
parent 2cc342a882
commit a6637d1575
2 changed files with 0 additions and 18 deletions

View File

@@ -1040,7 +1040,6 @@ void CodaGdbAdapter::startAdapter()
setupTrkDeviceSignals();
codaSocket = QSharedPointer<QTcpSocket>(new QTcpSocket);
m_codaDevice->setDevice(codaSocket);
m_codaSocketIODevice = codaSocket;
} else {
m_codaDevice = SymbianUtils::SymbianDeviceManager::instance()
->getCodaDevice(parameters.remoteChannel);
@@ -1213,22 +1212,6 @@ void CodaGdbAdapter::cleanup()
{
delete m_gdbServer;
m_gdbServer = 0;
if (!m_codaSocketIODevice.isNull()) {
QAbstractSocket *socket =
qobject_cast<QAbstractSocket *>(m_codaSocketIODevice.data());
const bool isOpen = socket
? socket->state() == QAbstractSocket::ConnectedState
: m_codaSocketIODevice->isOpen();
if (isOpen) {
// Ensure process is stopped after being suspended.
sendRunControlTerminateCommand();
if (socket) {
socket->disconnect();
} else {
m_codaSocketIODevice->close();
}
}
} //!m_trkIODevice.isNull()
if (m_codaDevice) {
// Ensure process is stopped after being suspended.
sendRunControlTerminateCommand();

View File

@@ -147,7 +147,6 @@ private:
int m_stopReason;
QSharedPointer<Coda::CodaDevice> m_codaDevice;
QSharedPointer<QIODevice> m_codaSocketIODevice;
//
// Gdb