forked from qt-creator/qt-creator
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:
@@ -696,7 +696,7 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
|
|||||||
<< "LEAVES PENDING AT:" << m_pendingRequests << cmd.command);
|
<< "LEAVES PENDING AT:" << m_pendingRequests << cmd.command);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd.flags & NeedsStop) {
|
if ((cmd.flags & NeedsStop) || !m_commandsToRunOnTemporaryBreak.isEmpty()) {
|
||||||
if (state() == InferiorStopped
|
if (state() == InferiorStopped
|
||||||
|| state() == InferiorStarting || state() == AdapterStarted) {
|
|| state() == InferiorStarting || state() == AdapterStarted) {
|
||||||
// Can be safely sent now.
|
// Can be safely sent now.
|
||||||
|
|||||||
Reference in New Issue
Block a user