Commit b0640b9a authored by hjk's avatar hjk

debugger: fix crash when adding a watcher to a non-running "synchroneous" engine.

parent f2842d07
......@@ -1181,7 +1181,8 @@ void WatchHandler::insertData(const WatchData &data)
}
if (data.isSomethingNeeded() && data.iname.contains('.')) {
MODEL_DEBUG("SOMETHING NEEDED: " << data.toString());
if (!m_manager->currentEngine()->isSynchroneous()) {
IDebuggerEngine *engine = m_manager->currentEngine();
if (engine && !engine->isSynchroneous()) {
m_manager->updateWatchData(data);
} else {
qDebug() << "ENDLESS LOOP: SOMETHING NEEDED: " << data.toString();
......
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