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
Tobias Hunger
qt-creator
Commits
f245ee6f
Commit
f245ee6f
authored
Jan 14, 2011
by
hjk
Browse files
debugger: finish combined shutdown properly
parent
7bae5dd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
f245ee6f
...
...
@@ -978,8 +978,7 @@ void DebuggerEngine::notifyEngineShutdownOk()
showMessage
(
_
(
"NOTE: ENGINE SHUTDOWN OK"
));
QTC_ASSERT
(
state
()
==
EngineShutdownRequested
,
qDebug
()
<<
this
<<
state
());
setState
(
EngineShutdownOk
);
if
(
isMasterEngine
())
d
->
queueFinishDebugger
();
d
->
queueFinishDebugger
();
}
void
DebuggerEngine
::
notifyEngineShutdownFailed
()
...
...
@@ -987,13 +986,11 @@ void DebuggerEngine::notifyEngineShutdownFailed()
showMessage
(
_
(
"NOTE: ENGINE SHUTDOWN FAILED"
));
QTC_ASSERT
(
state
()
==
EngineShutdownRequested
,
qDebug
()
<<
this
<<
state
());
setState
(
EngineShutdownFailed
);
if
(
isMasterEngine
())
d
->
queueFinishDebugger
();
d
->
queueFinishDebugger
();
}
void
DebuggerEnginePrivate
::
doFinishDebugger
()
{
QTC_ASSERT
(
isMasterEngine
(),
return
);
m_engine
->
showMessage
(
_
(
"NOTE: FINISH DEBUGGER"
));
QTC_ASSERT
(
state
()
==
DebuggerFinished
,
qDebug
()
<<
m_engine
<<
state
());
resetLocation
();
...
...
@@ -1043,17 +1040,6 @@ void DebuggerEngine::notifyInferiorExited()
qDebug
()
<<
"
\n
SPONTANEUOUS EXIT: "
<<
this
<<
d
->
m_state
;
showMessage
(
_
(
"NOTE: INFERIOR EXITED"
));
d
->
resetLocation
();
/*
// This can be issued in almost any state. We assume, though,
// that at this point of time the inferior is not running anymore,
// even if stop notification were not issued or got lost.
if (state() == InferiorRunOk) {
setState(InferiorStopRequested);
setState(InferiorStopOk);
}
setState(InferiorShutdownRequested);
setState(InferiorShutdownOk);
*/
setState
(
InferiorExitOk
);
if
(
isMasterEngine
())
{
setState
(
InferiorShutdownOk
);
...
...
src/plugins/debugger/qml/qmlcppengine.cpp
View file @
f245ee6f
...
...
@@ -557,14 +557,18 @@ void QmlCppEngine::slaveEngineStateChanged
case
EngineShutdownOk
:
if
(
otherEngine
->
state
()
==
EngineShutdownOk
)
notifyEngineShutdownOk
();
;
// Wait for DebuggerFinished.
else
qDebug
()
<<
"... WAITING FOR OTHER ENGINE SHUTDOWN..."
;
break
;
case
DebuggerFinished
:
break
;
if
(
otherEngine
->
state
()
==
DebuggerFinished
)
notifyEngineShutdownOk
();
else
qDebug
()
<<
"... WAITING FOR OTHER DEBUGGER TO FINISH..."
;
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