Commit 3fcceedd authored by hjk's avatar hjk
Browse files

debugger: fix context updates

done by Lasse
parent 0e54b6ca
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
// | | // | |
// | | // | |
// {notify- {notify- // {notify- {notify-
// Inferior- Inferior- // Engine- Engine-
// ShutdownOk} ShutdownFailed} // ShutdownOk} ShutdownFailed}
// + + // + +
// EngineShutdownOk EngineShutdownFailed // EngineShutdownOk EngineShutdownFailed
...@@ -2214,10 +2214,11 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine) ...@@ -2214,10 +2214,11 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
const bool isContinuable = (engine->state() == InferiorStopOk); const bool isContinuable = (engine->state() == InferiorStopOk);
const bool isInterruptible = (engine->state() == InferiorRunOk); const bool isInterruptible = (engine->state() == InferiorRunOk);
ICore *core = ICore::instance(); ICore *core = ICore::instance();
if (isContinuable) { if (isContinuable) {
core->updateAdditionalContexts(Core::Context(), m_continuableContext); core->updateAdditionalContexts(m_interruptibleContext, m_continuableContext);
} else if (isInterruptible) { } else if (isInterruptible) {
core->updateAdditionalContexts(Core::Context(), m_interruptibleContext); core->updateAdditionalContexts(m_continuableContext, m_interruptibleContext);
} else { } else {
core->updateAdditionalContexts(m_continuableContext, Core::Context()); core->updateAdditionalContexts(m_continuableContext, Core::Context());
core->updateAdditionalContexts(m_interruptibleContext, Core::Context()); core->updateAdditionalContexts(m_interruptibleContext, Core::Context());
......
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