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.
This commit is contained in:
Oswald Buddenhagen
2009-10-23 21:50:33 +02:00
parent 31818acb11
commit bf09e8c830

View File

@@ -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.