forked from qt-creator/qt-creator
Debugger/LLDB: Fix build on Windows.
Change-Id: I7cf64967f0fc5cc54d59b88ed08c445781ec56e1 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -201,7 +201,11 @@ void LldbEngine::setupInferior()
|
||||
const DebuggerStartParameters &sp = startParameters();
|
||||
|
||||
QString executable;
|
||||
#ifdef Q_OS_WIN
|
||||
QString args;
|
||||
#else
|
||||
QStringList args;
|
||||
#endif
|
||||
Utils::QtcProcess::prepareCommand(QFileInfo(sp.executable).absoluteFilePath(),
|
||||
sp.processArgs, &executable, &args);
|
||||
|
||||
@@ -209,8 +213,12 @@ void LldbEngine::setupInferior()
|
||||
cmd.arg("executable", executable);
|
||||
cmd.arg("startMode", sp.startMode); // directly relying on this is brittle wrt. insertions, so check it here
|
||||
cmd.beginList("processArgs");
|
||||
#ifdef Q_OS_WIN
|
||||
// fixme?
|
||||
#else
|
||||
foreach (const QString &arg, args)
|
||||
cmd.arg(arg.toUtf8().toHex());
|
||||
#endif
|
||||
cmd.endList();
|
||||
|
||||
// it is better not to check the start mode on the python sid (as we would have to duplicate the
|
||||
|
||||
Reference in New Issue
Block a user