BareMetal: Fix startup

Task-number: QTCREATORBUG-27972
Change-Id: I16c6b07c33736f087ea805994fe51a9c109c5d95
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-07-21 14:54:49 +02:00
parent ca9e652716
commit 59fde5be05

View File

@@ -164,7 +164,7 @@ bool GdbServerProvider::aboutToRun(DebuggerRunTool *runTool,
const auto exeAspect = runControl->aspect<ExecutableAspect>();
QTC_ASSERT(exeAspect, return false);
const FilePath bin = exeAspect->executable;
const FilePath bin = FilePath::fromString(exeAspect->executable.path());
if (bin.isEmpty()) {
errorMessage = BareMetalDebugSupport::tr(
"Cannot debug: Local executable is not set.");