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:
@@ -363,9 +363,8 @@ void AttachCoreDialog::coreFileChanged(const QString &core)
|
||||
if (!HostOsInfo::isWindowsHost() && QFile::exists(core)) {
|
||||
Kit *k = d->kitChooser->currentKit();
|
||||
QTC_ASSERT(k, return);
|
||||
FileName cmd = DebuggerKitInformation::debuggerCommand(k);
|
||||
GdbCoreEngine::CoreInfo cinfo =
|
||||
GdbCoreEngine::readExecutableNameFromCore(cmd.toString(), core);
|
||||
StandardRunnable debugger = DebuggerKitInformation::runnable(k);
|
||||
GdbCoreEngine::CoreInfo cinfo = GdbCoreEngine::readExecutableNameFromCore(debugger, core);
|
||||
if (!cinfo.foundExecutableName.isEmpty())
|
||||
d->localExecFileName->setFileName(FileName::fromString(cinfo.foundExecutableName));
|
||||
else if (!d->localExecFileName->isValid() && !cinfo.rawStringFromCore.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user