Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
23e06304
Commit
23e06304
authored
Nov 09, 2009
by
Oswald Buddenhagen
Browse files
further cleanups in less expected shutdown paths
Reviewed-by: hjk
parent
97618ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
23e06304
...
...
@@ -285,6 +285,8 @@ void GdbEngine::initializeVariables()
m_inbuffer
.
clear
();
m_commandTimer
->
stop
();
// ConverterState has no reset() function.
m_outputCodecState
.
~
ConverterState
();
new
(
&
m_outputCodecState
)
QTextCodec
::
ConverterState
();
...
...
@@ -1456,6 +1458,7 @@ void GdbEngine::shutdown()
case
InferiorRunning
:
case
InferiorStopping
:
case
InferiorStopped
:
m_commandsToRunOnTemporaryBreak
.
clear
();
postCommand
(
_
(
m_gdbAdapter
->
inferiorShutdownCommand
()),
NeedsStop
|
LosesChild
,
CB
(
handleInferiorShutdown
));
break
;
...
...
@@ -1496,6 +1499,7 @@ void GdbEngine::handleGdbExit(const GdbResponse &response)
{
if
(
response
.
resultClass
==
GdbResultExit
)
{
debugMessage
(
_
(
"GDB CLAIMS EXIT; WAITING"
));
m_commandsDoneCallback
=
0
;
// don't set state here, this will be handled in handleGdbFinished()
}
else
{
QString
msg
=
m_gdbAdapter
->
msgGdbStopFailed
(
_
(
response
.
data
.
findChild
(
"msg"
).
data
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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