Commit 634e4e54 authored by hjk's avatar hjk
Browse files

debugger: cleanup

parent fba9ab5f
......@@ -899,7 +899,7 @@ void DebuggerManager::exitDebugger()
emit debuggingFinished();
}
QSharedPointer<DebuggerStartParameters> DebuggerManager::startParameters() const
DebuggerStartParametersPtr DebuggerManager::startParameters() const
{
return m_startParameters;
}
......
......@@ -85,7 +85,7 @@ RunConfigurationPtr DebuggerRunner::createDefaultRunConfiguration(const QString
RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration,
const QString &mode,
const QSharedPointer<DebuggerStartParameters> &sp)
const DebuggerStartParametersPtr &sp)
{
QTC_ASSERT(mode == ProjectExplorer::Constants::DEBUGMODE, return 0);
ApplicationRunConfigurationPtr rc =
......@@ -97,7 +97,7 @@ RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration,
RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration,
const QString &mode)
{
const QSharedPointer<DebuggerStartParameters> sp(new DebuggerStartParameters);
const DebuggerStartParametersPtr sp(new DebuggerStartParameters);
sp->startMode = StartInternal;
return run(runConfiguration, mode, sp);
}
......@@ -119,7 +119,7 @@ QWidget *DebuggerRunner::configurationWidget(RunConfigurationPtr runConfiguratio
DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager,
const QSharedPointer<DebuggerStartParameters> &startParameters,
const DebuggerStartParametersPtr &startParameters,
QSharedPointer<ApplicationRunConfiguration> runConfiguration)
: RunControl(runConfiguration),
m_startParameters(startParameters),
......
......@@ -1543,7 +1543,7 @@ int GdbEngine::currentFrame() const
return qq->stackHandler()->currentIndex();
}
void GdbEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
void GdbEngine::startDebugger(const DebuggerStartParametersPtr &sp)
{
m_startParameters = sp;
// This should be set by the constructor or in exitDebugger().
......
......@@ -144,7 +144,7 @@ private:
void shutdown();
void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
void startDebugger(const QSharedPointer<DebuggerStartParameters> &sp);
void startDebugger(const DebuggerStartParametersPtr &sp);
Q_SLOT void startDebugger2();
void exitDebugger();
void exitDebugger2();
......
......@@ -52,6 +52,7 @@ class MemoryViewAgent;
struct StackFrame;
class Symbol;
class WatchData;
typedef QSharedPointer<DebuggerStartParameters> DebuggerStartParametersPtr;
class IDebuggerEngine : public QObject
{
......@@ -62,7 +63,7 @@ public:
virtual void shutdown() = 0;
virtual void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos) = 0;
virtual void startDebugger(const QSharedPointer<DebuggerStartParameters> &startParameters) = 0;
virtual void startDebugger(const DebuggerStartParametersPtr &startParameters) = 0;
virtual void exitDebugger() = 0;
virtual void detachDebugger() {}
virtual void updateWatchData(const WatchData &data) = 0;
......
......@@ -217,7 +217,7 @@ void ScriptEngine::exitDebugger()
qq->notifyInferiorExited();
}
void ScriptEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
void ScriptEngine::startDebugger(const DebuggerStartParametersPtr &sp)
{
if (!m_scriptEngine)
m_scriptEngine = new QScriptEngine(this);
......
......@@ -75,7 +75,7 @@ private:
void shutdown();
void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
void startDebugger(const QSharedPointer<DebuggerStartParameters> &sp);
void startDebugger(const DebuggerStartParametersPtr &sp);
void exitDebugger();
......
......@@ -220,7 +220,7 @@ void TcfEngine::exitDebugger()
qq->notifyInferiorExited();
}
void TcfEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
void TcfEngine::startDebugger(const DebuggerStartParametersPtr &sp)
{
qq->notifyInferiorRunningRequested();
const int pos = sp->remoteChannel.indexOf(QLatin1Char(':'));
......
......@@ -82,7 +82,7 @@ private:
void shutdown();
void setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos);
void startDebugger(const QSharedPointer<DebuggerStartParameters> &sp);
void startDebugger(const DebuggerStartParametersPtr &sp);
void exitDebugger();
void continueInferior();
......
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