Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
af367068
Commit
af367068
authored
May 11, 2009
by
hjk
Browse files
debugger: work on tcf debugging
parent
9b82d98e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/tcfengine.cpp
View file @
af367068
...
...
@@ -138,8 +138,8 @@ void TcfEngine::socketDisconnected()
void
TcfEngine
::
socketError
(
QAbstractSocket
::
SocketError
)
{
QString
msg
=
tr
(
"
Socket error:
%1"
).
arg
(
m_socket
->
errorString
());
QMessageBox
::
critical
(
q
->
mainWindow
(),
tr
(
"Error"
),
msg
);
QString
msg
=
tr
(
"%1
.
"
).
arg
(
m_socket
->
errorString
());
//
QMessageBox::critical(q->mainWindow(), tr("Error"), msg);
q
->
showStatusMessage
(
msg
);
qq
->
notifyInferiorExited
();
}
...
...
@@ -290,8 +290,16 @@ void TcfEngine::handleResponse(const QByteArray &buf)
qDebug
()
<<
response
.
toString
();
if
(
response
.
service
==
"Locator"
&&
response
.
cmd
==
"Hello"
)
{
postCommand
(
'C'
,
CB
(
handleRunControlSuspend
),
"RunControl"
,
"suspend"
,
"
\"
Thread1
\"
"
);
//postCommand('C', CB(handleRunControlSuspend),
// "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('E', "Locator", "Hello", "");
//postCommand('C', "Locator", "sync", "");
...
...
@@ -350,6 +358,16 @@ void TcfEngine::handleRunControlSuspend(const TcfResponse &response, const QVari
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
...
...
src/plugins/debugger/tcfengine.h
View file @
af367068
...
...
@@ -141,6 +141,8 @@ private:
void
handleResponse
(
const
QByteArray
&
ba
);
void
handleRunControlSuspend
(
const
TcfResponse
&
response
,
const
QVariant
&
);
void
handleRunControlGetChildren
(
const
TcfResponse
&
response
,
const
QVariant
&
);
void
handleSysMonitorGetChildren
(
const
TcfResponse
&
response
,
const
QVariant
&
);
private:
typedef
void
(
TcfEngine
::*
TcfCommandCallback
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment