forked from qt-creator/qt-creator
remove dead code
This commit is contained in:
@@ -969,24 +969,6 @@ i */
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrkGdbAdapter::executeCommand(const QString &msg)
|
|
||||||
{
|
|
||||||
if (msg == "EI") {
|
|
||||||
sendGdbMessage("-exec-interrupt");
|
|
||||||
} else if (msg == "C") {
|
|
||||||
sendTrkMessage(0x18, TrkCallback(), trkContinueMessage(), "CONTINUE");
|
|
||||||
} else if (msg == "S") {
|
|
||||||
sendTrkMessage(0x19, TrkCallback(), trkStepRangeMessage(0x01), "STEP");
|
|
||||||
} else if (msg == "N") {
|
|
||||||
sendTrkMessage(0x19, TrkCallback(), trkStepRangeMessage(0x11), "NEXT");
|
|
||||||
} else if (msg == "I") {
|
|
||||||
interruptInferior();
|
|
||||||
} else {
|
|
||||||
logMessage("EXECUTING GDB COMMAND " + msg);
|
|
||||||
sendGdbMessage(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void TrkGdbAdapter::sendTrkMessage(byte code, TrkCallback callback,
|
void TrkGdbAdapter::sendTrkMessage(byte code, TrkCallback callback,
|
||||||
const QByteArray &data, const QVariant &cookie)
|
const QByteArray &data, const QVariant &cookie)
|
||||||
{
|
{
|
||||||
@@ -1736,17 +1718,6 @@ void TrkGdbAdapter::startGdb()
|
|||||||
m_gdbProc.start(m_options->gdb, gdbArgs);
|
m_gdbProc.start(m_options->gdb, gdbArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrkGdbAdapter::sendGdbMessage(const QString &msg, GdbCallback callback,
|
|
||||||
const QVariant &cookie)
|
|
||||||
{
|
|
||||||
GdbCommand data;
|
|
||||||
data.command = msg;
|
|
||||||
data.callback = callback;
|
|
||||||
data.cookie = cookie;
|
|
||||||
logMessage(QString("<- ADAPTER TO GDB: %2").arg(msg));
|
|
||||||
m_gdbProc.write(msg.toLatin1() + "\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Rfcomm process handling
|
// Rfcomm process handling
|
||||||
//
|
//
|
||||||
|
@@ -273,9 +273,6 @@ private:
|
|||||||
//QTime postTime;
|
//QTime postTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
void sendGdbMessage(const QString &msg,
|
|
||||||
GdbCallback callback = GdbCallback(),
|
|
||||||
const QVariant &cookie = QVariant());
|
|
||||||
Q_SLOT void handleGdbConnection();
|
Q_SLOT void handleGdbConnection();
|
||||||
Q_SLOT void readGdbServerCommand();
|
Q_SLOT void readGdbServerCommand();
|
||||||
void readGdbResponse();
|
void readGdbResponse();
|
||||||
@@ -316,7 +313,6 @@ private:
|
|||||||
QString effectiveTrkDevice() const;
|
QString effectiveTrkDevice() const;
|
||||||
|
|
||||||
// Debuggee state
|
// Debuggee state
|
||||||
Q_SLOT void executeCommand(const QString &msg);
|
|
||||||
trk::Session m_session; // global-ish data (process id, target information)
|
trk::Session m_session; // global-ish data (process id, target information)
|
||||||
Snapshot m_snapshot; // local-ish data (memory and registers)
|
Snapshot m_snapshot; // local-ish data (memory and registers)
|
||||||
QString m_remoteExecutable;
|
QString m_remoteExecutable;
|
||||||
|
Reference in New Issue
Block a user