forked from qt-creator/qt-creator
BareMetal: Fix startup
Task-number: QTCREATORBUG-27972
Change-Id: I16c6b07c33736f087ea805994fe51a9c109c5d95
(cherry picked from commit 59fde5be05
)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -164,7 +164,7 @@ bool GdbServerProvider::aboutToRun(DebuggerRunTool *runTool,
|
|||||||
const auto exeAspect = runControl->aspect<ExecutableAspect>();
|
const auto exeAspect = runControl->aspect<ExecutableAspect>();
|
||||||
QTC_ASSERT(exeAspect, return false);
|
QTC_ASSERT(exeAspect, return false);
|
||||||
|
|
||||||
const FilePath bin = exeAspect->executable;
|
const FilePath bin = FilePath::fromString(exeAspect->executable.path());
|
||||||
if (bin.isEmpty()) {
|
if (bin.isEmpty()) {
|
||||||
errorMessage = BareMetalDebugSupport::tr(
|
errorMessage = BareMetalDebugSupport::tr(
|
||||||
"Cannot debug: Local executable is not set.");
|
"Cannot debug: Local executable is not set.");
|
||||||
|
Reference in New Issue
Block a user