forked from qt-creator/qt-creator
Debugger: Simplify some path uses in GdbEngine
Change-Id: I5094fb5e71c664e6f6fc69648733c9307c3bc115 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -378,7 +378,7 @@ void AttachCoreDialog::coreFileChanged(const QString &core)
|
||||
Runnable debugger = DebuggerKitAspect::runnable(k);
|
||||
CoreInfo cinfo = CoreInfo::readExecutableNameFromCore(debugger, core);
|
||||
if (!cinfo.foundExecutableName.isEmpty())
|
||||
d->symbolFileName->setFilePath(FilePath::fromString(cinfo.foundExecutableName));
|
||||
d->symbolFileName->setFilePath(cinfo.foundExecutableName);
|
||||
else if (!d->symbolFileName->isValid() && !cinfo.rawStringFromCore.isEmpty())
|
||||
d->symbolFileName->setFilePath(FilePath::fromString(cinfo.rawStringFromCore));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user