forked from qt-creator/qt-creator
lldb: enable lldb through gui configure page
This commit is contained in:
@@ -418,6 +418,10 @@ void addTcfOptionPages(QList<IOptionsPage*> *opts);
|
||||
void addCdbOptionPages(QList<IOptionsPage*> *opts);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_LLDB
|
||||
void addLldbOptionPages(QList<IOptionsPage*> *opts);
|
||||
#endif
|
||||
|
||||
static SessionManager *sessionManager()
|
||||
{
|
||||
return ProjectExplorerPlugin::instance()->session();
|
||||
@@ -808,6 +812,10 @@ static bool parseArgument(QStringList::const_iterator &it,
|
||||
*enabledEngines &= ~TcfEngineType;
|
||||
return true;
|
||||
}
|
||||
if (option == _("-disable-lldb")) {
|
||||
*enabledEngines &= ~LldbEngineType;
|
||||
return true;
|
||||
}
|
||||
|
||||
*errorMessage = DebuggerPlugin::tr("Invalid debugger option: %1").arg(option);
|
||||
return false;
|
||||
@@ -1947,6 +1955,11 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
#ifdef Q_OS_WIN
|
||||
Debugger::Cdb::addCdb2OptionPages(&engineOptionPages);
|
||||
#endif
|
||||
#ifdef WITH_LLDB
|
||||
if (cmdLineEnabledEngines & LldbEngineType)
|
||||
addLldbOptionPages(&engineOptionPages);
|
||||
#endif
|
||||
|
||||
//if (cmdLineEnabledEngines & ScriptEngineType)
|
||||
// addScriptOptionPages(&engineOptionPages);
|
||||
//if (cmdLineEnabledEngines & TcfEngineType)
|
||||
|
||||
Reference in New Issue
Block a user