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
475bc513
Commit
475bc513
authored
Jul 15, 2010
by
hjk
Browse files
debugger: there are several states that do not accept commands
parent
42f326af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
475bc513
...
...
@@ -652,7 +652,6 @@ void GdbEngine::interruptInferiorTemporarily()
foreach
(
const
GdbCommand
&
cmd
,
m_commandsToRunOnTemporaryBreak
)
{
if
(
cmd
.
flags
&
LosesChild
)
{
notifyInferiorIll
();
//setState(InferiorStopRequested_Kill);
break
;
}
}
...
...
@@ -751,7 +750,6 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
if
(
state
()
==
InferiorStopRequested
)
{
if
(
cmd
.
flags
&
LosesChild
)
{
notifyInferiorIll
();
//setState(InferiorStopRequested_Kill);
}
showMessage
(
_
(
"CHILD ALREADY BEING INTERRUPTED. STILL HOPING."
));
// Calling shutdown() here breaks all situations where two
...
...
@@ -792,14 +790,14 @@ void GdbEngine::flushQueuedCommands()
void
GdbEngine
::
flushCommand
(
const
GdbCommand
&
cmd0
)
{
GdbCommand
cmd
=
cmd0
;
if
(
state
()
==
DebuggerNotReady
)
{
showMessage
(
_
(
cmd
.
command
),
LogInput
);
showMessage
(
_
(
"GDB PROCESS NOT RUNNING, PLAIN CMD IGNORED: "
+
cmd
.
command
));
if
(
!
stateAcceptsGdbCommands
(
state
()))
{
showMessage
(
_
(
cmd0
.
command
),
LogInput
);
showMessage
(
_
(
"GDB PROCESS ACCEPTS NO CMD IN STATE %1 "
).
arg
(
state
()));
return
;
}
++
currentToken
();
GdbCommand
cmd
=
cmd0
;
cmd
.
postTime
=
QTime
::
currentTime
();
m_cookieForToken
[
currentToken
()]
=
cmd
;
if
(
cmd
.
flags
&
ConsoleCommand
)
...
...
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