debugger: introduce a new category for commands that are always immediately executed

used for -exec-interrupt right now
This commit is contained in:
hjk
2010-04-09 14:53:45 +02:00
parent d8cc842d49
commit 0ea0977ca8
3 changed files with 9 additions and 2 deletions

View File

@@ -759,7 +759,12 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
<< "LEAVES PENDING BREAKPOINT AT" << m_pendingBreakpointRequests);
}
if ((cmd.flags & NeedsStop) || !m_commandsToRunOnTemporaryBreak.isEmpty()) {
// FIXME: clean up logic below
if (cmd.flags & Immediate) {
// This should always be sent.
flushCommand(cmd);
} else if ((cmd.flags & NeedsStop)
|| !m_commandsToRunOnTemporaryBreak.isEmpty()) {
if (state() == InferiorStopped || state() == InferiorUnrunnable
|| state() == InferiorStarting || state() == AdapterStarted) {
// Can be safely sent now.