forked from qt-creator/qt-creator
Debugger: Remove a parameter with fixed value
Internal::displayDebugger's updateEngine parameter was always true. Change-Id: I27e91b7327ef7f4ccfb7718ad47fe5316660ea17 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -77,7 +77,7 @@ void showMessage(const QString &msg, int channel, int timeout = -1);
|
|||||||
bool isReverseDebugging();
|
bool isReverseDebugging();
|
||||||
void runControlStarted(DebuggerRunTool *runTool);
|
void runControlStarted(DebuggerRunTool *runTool);
|
||||||
void runControlFinished(DebuggerRunTool *runTool);
|
void runControlFinished(DebuggerRunTool *runTool);
|
||||||
void displayDebugger(DebuggerRunTool *runTool, bool updateEngine);
|
void displayDebugger(DebuggerRunTool *runTool);
|
||||||
void synchronizeBreakpoints();
|
void synchronizeBreakpoints();
|
||||||
|
|
||||||
void saveModeToRestore();
|
void saveModeToRestore();
|
||||||
|
@@ -747,7 +747,7 @@ public:
|
|||||||
void runControlFinished(DebuggerRunTool *runTool);
|
void runControlFinished(DebuggerRunTool *runTool);
|
||||||
void remoteCommand(const QStringList &options);
|
void remoteCommand(const QStringList &options);
|
||||||
|
|
||||||
void displayDebugger(DebuggerRunTool *runTool, bool updateEngine = true);
|
void displayDebugger(DebuggerRunTool *runTool);
|
||||||
|
|
||||||
void dumpLog();
|
void dumpLog();
|
||||||
void cleanupViews();
|
void cleanupViews();
|
||||||
@@ -2379,7 +2379,7 @@ void DebuggerPluginPrivate::requestMark(TextEditorWidget *widget, int lineNumber
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If updateEngine is set, the engine will update its threads/modules and so forth.
|
// If updateEngine is set, the engine will update its threads/modules and so forth.
|
||||||
void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool, bool updateEngine)
|
void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(runTool, return);
|
QTC_ASSERT(runTool, return);
|
||||||
DebuggerEngine *engine = runTool ? runTool->engine() : dummyEngine();
|
DebuggerEngine *engine = runTool ? runTool->engine() : dummyEngine();
|
||||||
@@ -2387,8 +2387,7 @@ void DebuggerPluginPrivate::displayDebugger(DebuggerRunTool *runTool, bool updat
|
|||||||
|
|
||||||
disconnectEngine();
|
disconnectEngine();
|
||||||
connectEngine(runTool);
|
connectEngine(runTool);
|
||||||
if (updateEngine)
|
engine->updateAll();
|
||||||
engine->updateAll();
|
|
||||||
engine->updateViews();
|
engine->updateViews();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3197,9 +3196,9 @@ void runControlFinished(DebuggerRunTool *runTool)
|
|||||||
dd->runControlFinished(runTool);
|
dd->runControlFinished(runTool);
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayDebugger(DebuggerRunTool *runTool, bool updateEngine)
|
void displayDebugger(DebuggerRunTool *runTool)
|
||||||
{
|
{
|
||||||
dd->displayDebugger(runTool, updateEngine);
|
dd->displayDebugger(runTool);
|
||||||
}
|
}
|
||||||
|
|
||||||
void synchronizeBreakpoints()
|
void synchronizeBreakpoints()
|
||||||
|
@@ -207,7 +207,7 @@ void SnapshotHandler::activateSnapshot(int index)
|
|||||||
beginResetModel();
|
beginResetModel();
|
||||||
m_currentIndex = index;
|
m_currentIndex = index;
|
||||||
//qDebug() << "ACTIVATING INDEX: " << m_currentIndex << " OF " << size();
|
//qDebug() << "ACTIVATING INDEX: " << m_currentIndex << " OF " << size();
|
||||||
Internal::displayDebugger(at(index), true);
|
Internal::displayDebugger(at(index));
|
||||||
endResetModel();
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user