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
44cf1c46
Commit
44cf1c46
authored
Oct 23, 2009
by
Oswald Buddenhagen
Browse files
no need for a real state check here - an assert will do
and fix typo in debug message :)=
parent
33996aa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
44cf1c46
...
...
@@ -615,18 +615,12 @@ void GdbEngine::readGdbStandardOutput()
void
GdbEngine
::
interruptInferior
()
{
QTC_ASSERT
(
state
()
==
InferiorRunning
,
qDebug
()
<<
state
());
if
(
state
()
==
DebuggerNotReady
)
{
debugMessage
(
_
(
"TRYING TO INTERRUPT INFERIOR WITHOUT RUNNING GDB"
));
shutdown
();
return
;
}
QTC_ASSERT
(
state
()
==
InferiorRunning
,
qDebug
()
<<
state
();
return
);
setState
(
InferiorStopping
);
showStatusMessage
(
tr
(
"Stop requested..."
),
5000
);
debugMessage
(
_
(
"TRYING TO INTERUPT INFERIOR"
));
debugMessage
(
_
(
"TRYING TO INTER
R
UPT INFERIOR"
));
m_gdbAdapter
->
interruptInferior
();
}
...
...
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