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
163150e3
Commit
163150e3
authored
Sep 30, 2009
by
hjk
Browse files
debugger: some state change fixes when shutting down in 'attach' mode
parent
93902e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/attachgdbadapter.cpp
View file @
163150e3
...
...
@@ -135,7 +135,7 @@ void AttachGdbAdapter::handleAttach(const GdbResponse &response)
m_engine
->
updateAll
();
}
else
if
(
response
.
resultClass
==
GdbResultError
)
{
QString
msg
=
__
(
response
.
data
.
findChild
(
"msg"
).
data
());
setState
(
Inferior
Preparation
Failed
);
setState
(
Inferior
Start
Failed
);
emit
inferiorStartFailed
(
msg
);
}
}
...
...
@@ -167,6 +167,11 @@ void AttachGdbAdapter::shutdown()
{
switch
(
state
())
{
case
InferiorStartFailed
:
m_engine
->
postCommand
(
_
(
"-gdb-exit"
));
setState
(
DebuggerNotReady
);
return
;
case
InferiorStopped
:
setState
(
InferiorShuttingDown
);
m_engine
->
postCommand
(
_
(
"detach"
),
CB
(
handleDetach
));
...
...
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