forked from qt-creator/qt-creator
debugger: work on tcf debugging
This commit is contained in:
@@ -138,8 +138,8 @@ void TcfEngine::socketDisconnected()
|
|||||||
|
|
||||||
void TcfEngine::socketError(QAbstractSocket::SocketError)
|
void TcfEngine::socketError(QAbstractSocket::SocketError)
|
||||||
{
|
{
|
||||||
QString msg = tr("Socket error: %1").arg(m_socket->errorString());
|
QString msg = tr("%1.").arg(m_socket->errorString());
|
||||||
QMessageBox::critical(q->mainWindow(), tr("Error"), msg);
|
//QMessageBox::critical(q->mainWindow(), tr("Error"), msg);
|
||||||
q->showStatusMessage(msg);
|
q->showStatusMessage(msg);
|
||||||
qq->notifyInferiorExited();
|
qq->notifyInferiorExited();
|
||||||
}
|
}
|
||||||
@@ -290,8 +290,16 @@ void TcfEngine::handleResponse(const QByteArray &buf)
|
|||||||
qDebug() << response.toString();
|
qDebug() << response.toString();
|
||||||
|
|
||||||
if (response.service == "Locator" && response.cmd == "Hello") {
|
if (response.service == "Locator" && response.cmd == "Hello") {
|
||||||
postCommand('C', CB(handleRunControlSuspend),
|
//postCommand('C', CB(handleRunControlSuspend),
|
||||||
"RunControl", "suspend", "\"Thread1\"");
|
// "RunControl", "suspend", "\"Thread1\"");
|
||||||
|
//postCommand('C', CB(handleRunControlSuspend),
|
||||||
|
// "RunControl", "getContext", "\"P12318\"");
|
||||||
|
postCommand('C', CB(handleRunControlGetChildren),
|
||||||
|
"RunControl", "getChildren", "\"\"");
|
||||||
|
|
||||||
|
postCommand('C', CB(handleSysMonitorGetChildren),
|
||||||
|
"SysMonitor", "getChildren", "\"\"");
|
||||||
|
|
||||||
//postCommand('F', "0", "", "");
|
//postCommand('F', "0", "", "");
|
||||||
//postCommand('E', "Locator", "Hello", "");
|
//postCommand('E', "Locator", "Hello", "");
|
||||||
//postCommand('C', "Locator", "sync", "");
|
//postCommand('C', "Locator", "sync", "");
|
||||||
@@ -350,6 +358,16 @@ void TcfEngine::handleRunControlSuspend(const TcfResponse &response, const QVari
|
|||||||
qDebug() << "HANDLE RESULT";
|
qDebug() << "HANDLE RESULT";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TcfEngine::handleRunControlGetChildren(const TcfResponse &response, const QVariant &)
|
||||||
|
{
|
||||||
|
qDebug() << "HANDLE RESULT" << response.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
void TcfEngine::handleSysMonitorGetChildren(const TcfResponse &response, const QVariant &)
|
||||||
|
{
|
||||||
|
qDebug() << "HANDLE RESULT" << response.toString();
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Tooltip specific stuff
|
// Tooltip specific stuff
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ private:
|
|||||||
|
|
||||||
void handleResponse(const QByteArray &ba);
|
void handleResponse(const QByteArray &ba);
|
||||||
void handleRunControlSuspend(const TcfResponse &response, const QVariant &);
|
void handleRunControlSuspend(const TcfResponse &response, const QVariant &);
|
||||||
|
void handleRunControlGetChildren(const TcfResponse &response, const QVariant &);
|
||||||
|
void handleSysMonitorGetChildren(const TcfResponse &response, const QVariant &);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef void (TcfEngine::*TcfCommandCallback)
|
typedef void (TcfEngine::*TcfCommandCallback)
|
||||||
|
|||||||
Reference in New Issue
Block a user