Commit 56fd90e5 authored by hjk's avatar hjk
Browse files

debugger: fix spelling of synchronous

Finally.
parent 15da517b
......@@ -165,7 +165,7 @@ public:
virtual void addOptionPages(QList<Core::IOptionsPage*> *) const {}
virtual unsigned debuggerCapabilities() const { return 0; }
virtual bool isSynchroneous() const { return false; }
virtual bool isSynchronous() const { return false; }
virtual QString qtNamespace() const { return QString(); }
virtual void createSnapshot() {}
......
......@@ -995,7 +995,7 @@ void GdbEngine::handleResultRecord(GdbResponse *response)
interruptInferiorTemporarily();
// Continue only if there are no commands wire anymore, so this will
// be fully synchroneous.
// be fully synchronous.
// This is somewhat inefficient, as it makes the last command synchronous.
// An optimization would be requesting the continue immediately when the
// event loop is entered, and let individual commands have a flag to suppress
......@@ -1340,7 +1340,7 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
|| name != CROSS_STOP_SIGNAL))
initHelpers = false;
}
if (isSynchroneous())
if (isSynchronous())
initHelpers = false;
if (initHelpers) {
tryLoadDebuggingHelpersClassic();
......@@ -3243,7 +3243,7 @@ void GdbEngine::setToolTipExpression(const QPoint &mousePos,
}
*/
if (isSynchroneous()) {
if (isSynchronous()) {
updateLocals(QVariant());
return;
}
......@@ -3295,7 +3295,7 @@ bool GdbEngine::hasDebuggingHelperForType(const QString &type) const
void GdbEngine::updateWatchData(const WatchData &data)
{
if (isSynchroneous()) {
if (isSynchronous()) {
// This should only be called for fresh expanded items, not for
// items that had their children retrieved earlier.
//qDebug() << "\nUPDATE WATCH DATA: " << data.toString() << "\n";
......@@ -3361,7 +3361,7 @@ void GdbEngine::rebuildWatchModel()
{
static int count = 0;
++count;
if (!isSynchroneous())
if (!isSynchronous())
m_processedNames.clear();
PENDING_DEBUG("REBUILDING MODEL" << count);
if (theDebuggerBoolSetting(LogTimeStamps))
......@@ -3515,7 +3515,7 @@ WatchData GdbEngine::localVariable(const GdbMi &item,
data.setError(WatchData::msgNotInScope());
return data;
}
if (isSynchroneous()) {
if (isSynchronous()) {
setWatchDataValue(data, item);
// We know that the complete list of children is
// somewhere in the response.
......
......@@ -290,7 +290,7 @@ private: ////////// Gdb Output, State & Capability Handling //////////
StackFrame parseStackFrame(const GdbMi &mi, int level);
void resetCommandQueue();
bool isSynchroneous() const { return hasPython(); }
bool isSynchronous() const { return hasPython(); }
virtual bool hasPython() const;
bool supportsThreads() const;
......
......@@ -102,7 +102,7 @@ private:
void reloadFullStack() {}
bool supportsThreads() const { return true; }
bool isSynchroneous() const { return true; }
bool isSynchronous() const { return true; }
void updateWatchData(const WatchData &data);
signals:
......
......@@ -175,9 +175,9 @@ unsigned QmlCppEngine::debuggerCapabilities() const
return m_cppEngine->debuggerCapabilities();
}
bool QmlCppEngine::isSynchroneous() const
bool QmlCppEngine::isSynchronous() const
{
return m_activeEngine->isSynchroneous();
return m_activeEngine->isSynchronous();
}
QString QmlCppEngine::qtNamespace() const
......
......@@ -45,7 +45,7 @@ public:
virtual void setRegisterValue(int regnr, const QString &value);
virtual unsigned debuggerCapabilities() const;
virtual bool isSynchroneous() const;
virtual bool isSynchronous() const;
virtual QString qtNamespace() const;
virtual void createSnapshot();
......
......@@ -74,7 +74,7 @@ public slots:
private:
// DebuggerEngine implementation
bool isSynchroneous() const { return false; }
bool isSynchronous() const { return false; }
void executeStep();
void executeStepOut();
void executeNext();
......
......@@ -1182,13 +1182,13 @@ void WatchHandler::insertData(const WatchData &data)
if (data.isSomethingNeeded() && data.iname.contains('.')) {
MODEL_DEBUG("SOMETHING NEEDED: " << data.toString());
if (!m_engine->isSynchroneous()) {
if (!m_engine->isSynchronous()) {
m_engine->updateWatchData(data);
} else {
qDebug() << "ENDLESS LOOP: SOMETHING NEEDED: " << data.toString();
WatchData data1 = data;
data1.setAllUnneeded();
data1.setValue(QLatin1String("<unavailable synchroneous data>"));
data1.setValue(QLatin1String("<unavailable synchronous data>"));
data1.setHasChildren(false);
WatchModel *model = modelForIName(data.iname);
QTC_ASSERT(model, return);
......@@ -1267,7 +1267,7 @@ void WatchHandler::watchExpression(const QString &exp)
if (exp.isEmpty())
data.setAllUnneeded();
data.iname = watcherName(data.exp);
if (m_engine->isSynchroneous() && !m_engine->isSessionEngine())
if (m_engine->isSynchronous() && !m_engine->isSessionEngine())
m_engine->updateWatchData(data);
else
insertData(data);
......
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