forked from qt-creator/qt-creator
Debugger: Use a StandardRunnable for the debugger process
One step further to separate the debugger environment from the inferior environment and to make it possible to configure a working directory. Guessing one from the inferior's working directory is not always a good idea. Change-Id: I33d139c0f228ec0870556b82bc6aecca0a8e62d6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1204,7 +1204,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
|
||||
}
|
||||
rp.inferior.environment = Utils::Environment::systemEnvironment();
|
||||
rp.stubEnvironment = Utils::Environment::systemEnvironment();
|
||||
rp.debuggerEnvironment = Utils::Environment::systemEnvironment();
|
||||
rp.debugger.environment = Utils::Environment::systemEnvironment();
|
||||
|
||||
if (!kit)
|
||||
kit = guessKitFromParameters(rp);
|
||||
@@ -2912,7 +2912,7 @@ static QString formatStartParameters(DebuggerRunParameters &sp)
|
||||
str << "Directory: " << QDir::toNativeSeparators(sp.inferior.workingDirectory)
|
||||
<< '\n';
|
||||
}
|
||||
QString cmd = sp.debuggerCommand;
|
||||
QString cmd = sp.debugger.executable;
|
||||
if (!cmd.isEmpty())
|
||||
str << "Debugger: " << QDir::toNativeSeparators(cmd) << '\n';
|
||||
if (!sp.coreFile.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user