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
974bfe37
Commit
974bfe37
authored
Oct 27, 2010
by
hjk
Browse files
debugger: remove/update some cruft
parent
6a7cbac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
974bfe37
...
...
@@ -538,9 +538,9 @@ void GdbEngine::handleResponse(const QByteArray &buff)
//if (state() == InferiorStopOk) { // Result of manual command.
// resetLocation();
// setTokenBarrier();
//
setState(
InferiorRunRequested);
//
notify
InferiorRunRequested
(
);
//}
//
setState(
InferiorRunOk);
//
notify
InferiorRunOk
(
);
//showStatusMessage(tr("Running..."));
response
.
resultClass
=
GdbResultRunning
;
}
else
if
(
resultClass
==
"connected"
)
{
...
...
@@ -752,16 +752,6 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
showMessage
(
_
(
"CHILD ALREADY BEING INTERRUPTED. STILL HOPING."
));
// Calling shutdown() here breaks all situations where two
// NeedsStop commands are issued in quick succession.
//} else if (state() == InferiorStopRequested_Kill) {
// showMessage(_("CHILD ALREADY BEING INTERRUPTED (KILL PENDING)"));
// // FIXME
// shutdown();
//} else if (state() == InferiorRunRequested) {
// if (cmd.flags & LosesChild)
// setState(InferiorRunRequested_Kill);
// showMessage(_("RUNNING REQUESTED; POSTPONING INTERRUPT"));
//} else if (state() == InferiorRunRequested_Kill) {
// showMessage(_("RUNNING REQUESTED; POSTPONING INTERRUPT (KILL PENDING)"));
}
else
if
(
state
()
==
InferiorRunOk
)
{
showStatusMessage
(
tr
(
"Stopping temporarily"
),
1000
);
interruptInferiorTemporarily
();
...
...
@@ -818,7 +808,7 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
m_commandTimer
->
start
();
//if (cmd.flags & LosesChild)
//
setState(InferiorShutdownRequested
);
//
notifyInferiorIll(
);
}
int
GdbEngine
::
commandTimeoutTime
()
const
...
...
@@ -914,8 +904,7 @@ void GdbEngine::handleResultRecord(GdbResponse *response)
// and library load messages.
showMessage
(
_
(
"APPLYING WORKAROUND #4"
));
notifyInferiorStopOk
();
//setState(InferiorShutdownRequested);
//setState(InferiorShutdownOk);
//notifyInferiorIll();
//showStatusMessage(tr("Executable failed: %1")
// .arg(QString::fromLocal8Bit(msg)));
//shutdown();
...
...
@@ -1119,7 +1108,7 @@ void GdbEngine::handleExecuteRunToFunction(const GdbResponse &response)
// func="foo",args=[{name="str",value="@0x7fff0f450460"}],
// file="main.cpp",fullname="/tmp/g/main.cpp",line="37"}
QTC_ASSERT(state() == InferiorStopRequested, qDebug() << state())
setState(
InferiorStopOk);
notify
InferiorStopOk
(
);
showStatusMessage(tr("Function reached. Stopped"));
GdbMi frame = response.data.findChild("frame");
StackFrame f = parseStackFrame(frame, 0);
...
...
@@ -4226,7 +4215,7 @@ void GdbEngine::handleGdbError(QProcess::ProcessError error)
case
QProcess
::
Timedout
:
default:
//gdbProc()->kill();
//
setState(EngineShutdownRequested, true
);
//
notifyEngineIll(
);
showMessageBox
(
QMessageBox
::
Critical
,
tr
(
"Gdb I/O Error"
),
msg
);
break
;
}
...
...
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