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
b18c6f5d
Commit
b18c6f5d
authored
Sep 23, 2009
by
hjk
Browse files
debugger: remove unneded code
parent
3614d9c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
b18c6f5d
...
...
@@ -902,6 +902,7 @@ void GdbEngine::executeDebuggerCommand(const QString &command)
m_gdbAdapter
->
write
(
command
.
toLatin1
()
+
"
\r\n
"
);
}
// called from CoreAdapter and AttachAdapter
void
GdbEngine
::
updateAll
()
{
qq
->
notifyInferiorStopped
();
...
...
@@ -1424,23 +1425,6 @@ void GdbEngine::handleFileExecAndSymbols(const GdbResultRecord &response, const
}
}
#if 0
void GdbEngine::handleExecRun(const GdbResultRecord &response, const QVariant &)
{
if (response.resultClass == GdbResultRunning) {
qq->notifyInferiorRunning();
} else {
QTC_ASSERT(response.resultClass == GdbResultError, /**/);
const QByteArray &msg = response.data.findChild("msg").data();
showMessageBox(QMessageBox::Critical, tr("Starting executable failed",
QString::fromLocal8Bit(msg)));
QTC_ASSERT(status() == DebuggerInferiorRunning, /**/);
//interruptInferior();
qq->notifyInferiorExited();
}
}
#endif
void
GdbEngine
::
handleExecContinue
(
const
GdbResultRecord
&
response
,
const
QVariant
&
)
{
if
(
response
.
resultClass
==
GdbResultRunning
)
{
...
...
@@ -1454,10 +1438,9 @@ void GdbEngine::handleExecContinue(const GdbResultRecord &response, const QVaria
// "Leaving function..."));
//stepOutExec();
}
else
{
showMessageBox
(
QMessageBox
::
Critical
,
tr
(
"
Starting executable failed
"
),
QString
::
fromLocal8Bit
(
msg
));
showMessageBox
(
QMessageBox
::
Critical
,
tr
(
"
Error
"
),
tr
(
"Starting executable failed:
\n
"
)
+
QString
::
fromLocal8Bit
(
msg
));
QTC_ASSERT
(
status
()
==
DebuggerInferiorRunning
,
/**/
);
//interruptInferior();
qq
->
notifyInferiorExited
();
}
}
...
...
@@ -1465,7 +1448,6 @@ void GdbEngine::handleExecContinue(const GdbResultRecord &response, const QVaria
QString
GdbEngine
::
fullName
(
const
QString
&
fileName
)
{
//QString absName = m_manager->currentWorkingDirectory() + "/" + file; ??
if
(
fileName
.
isEmpty
())
return
QString
();
QString
full
=
m_shortToFullName
.
value
(
fileName
,
QString
());
...
...
@@ -1509,7 +1491,6 @@ void GdbEngine::shutdown()
void
GdbEngine
::
detachDebugger
()
{
//postCommand(_("detach"), CB(handleDetach));
QTC_ASSERT
(
startMode
()
==
AttachExternal
,
/**/
);
shutdown
();
}
...
...
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