Commit bf09e8c8 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

fix spurious command reordering

if there are already commands queued for running after temporary break,
then *all* commands must queued up or their order will change.
parent 31818acb
......@@ -696,7 +696,7 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
<< "LEAVES PENDING AT:" << m_pendingRequests << cmd.command);
}
if (cmd.flags & NeedsStop) {
if ((cmd.flags & NeedsStop) || !m_commandsToRunOnTemporaryBreak.isEmpty()) {
if (state() == InferiorStopped
|| state() == InferiorStarting || state() == AdapterStarted) {
// Can be safely sent now.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment