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
e3f47cbf
Commit
e3f47cbf
authored
Sep 15, 2009
by
hjk
Browse files
debugger: fix recent regression in startup logic
parent
a40f5564
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
e3f47cbf
...
...
@@ -762,15 +762,21 @@ void GdbEngine::postCommand(const QString &command, GdbCommandFlags flags,
void
GdbEngine
::
flushCommand
(
GdbCommand
&
cmd
)
{
if
(
m_gdbAdapter
->
state
()
!=
QProcess
::
Running
)
{
emit
gdbInputAvailable
(
LogInput
,
cmd
.
command
);
debugMessage
(
_
(
"GDB PROCESS NOT RUNNING, PLAIN CMD IGNORED: "
)
+
cmd
.
command
);
return
;
}
++
currentToken
();
cmd
.
postTime
=
QTime
::
currentTime
();
m_cookieForToken
[
currentToken
()]
=
cmd
;
cmd
.
command
=
QString
::
number
(
currentToken
())
+
cmd
.
command
;
if
(
cmd
.
flags
&
EmbedToken
)
cmd
.
command
=
cmd
.
command
.
arg
(
currentToken
());
emit
gdbInputAvailable
(
LogInput
,
cmd
.
command
);
executeDebuggerCommand
(
cmd
.
command
);
m_gdbAdapter
->
write
(
cmd
.
command
.
toLatin1
()
+
"
\r\n
"
);
}
void
GdbEngine
::
handleResultRecord
(
const
GdbResultRecord
&
record
)
...
...
@@ -841,6 +847,8 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
<<
m_pendingRequests
<<
cmd
.
command
);
}
// Continue only if there are no commands wire anymore, so this will
// be fully synchroneous.
// This is somewhat inefficient, as it makes the last command synchronous.
// An optimization would be requesting the continue immediately when the
// event loop is entered, and let individual commands have a flag to suppress
...
...
Write
Preview
Markdown
is supported
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