forked from qt-creator/qt-creator
debugger: simplify parameter guessing
With profiles we have more reliable information, no need for some of the guessing anymore. Change-Id: I1818fbb112d44c99ef96c8643256432805a1b97b Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -55,35 +55,14 @@ class DebuggerRunControlFactory;
|
||||
} // namespace Internal
|
||||
|
||||
|
||||
class DEBUGGER_EXPORT ConfigurationCheck
|
||||
{
|
||||
public:
|
||||
ConfigurationCheck();
|
||||
operator bool() const;
|
||||
QString errorDetailsString() const;
|
||||
|
||||
QString errorMessage;
|
||||
QStringList errorDetails;
|
||||
QString settingsCategory;
|
||||
QString settingsPage;
|
||||
QPair<DebuggerEngineType, DebuggerEngineType> masterSlaveEngineTypes;
|
||||
};
|
||||
|
||||
DEBUGGER_EXPORT ConfigurationCheck checkDebugConfiguration(const DebuggerStartParameters &sp);
|
||||
|
||||
// This is a job description containing all data "local" to the jobs, including
|
||||
// the models of the individual debugger views.
|
||||
class DEBUGGER_EXPORT DebuggerRunControl
|
||||
: public ProjectExplorer::RunControl
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
typedef ProjectExplorer::RunConfiguration RunConfiguration;
|
||||
explicit DebuggerRunControl(RunConfiguration *runConfiguration,
|
||||
const DebuggerStartParameters &sp,
|
||||
const QPair<DebuggerEngineType, DebuggerEngineType> &masterSlaveEngineTypes);
|
||||
|
||||
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
|
||||
const DebuggerStartParameters &sp);
|
||||
~DebuggerRunControl();
|
||||
|
||||
// ProjectExplorer::RunControl
|
||||
@@ -97,7 +76,7 @@ public:
|
||||
void setCustomEnvironment(Utils::Environment env);
|
||||
void startFailed();
|
||||
void debuggingFinished();
|
||||
RunConfiguration *runConfiguration() const;
|
||||
ProjectExplorer::RunConfiguration *runConfiguration() const;
|
||||
DebuggerEngine *engine(); // FIXME: Remove. Only used by Maemo support.
|
||||
|
||||
void showMessage(const QString &msg, int channel);
|
||||
@@ -112,7 +91,7 @@ protected:
|
||||
const DebuggerStartParameters &startParameters() const;
|
||||
|
||||
private:
|
||||
friend class Internal::DebuggerRunControlFactory;
|
||||
//friend class Internal::DebuggerRunControlFactory;
|
||||
Internal::DebuggerRunControlPrivate *d;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user