diff --git a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp index b71954eb577..7687075f9ea 100644 --- a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp +++ b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp @@ -164,7 +164,7 @@ bool GdbServerProvider::aboutToRun(DebuggerRunTool *runTool, const auto exeAspect = runControl->aspect(); 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.");