diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index d41ad6190d2f..259eb5e97034 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -173,7 +173,7 @@ SBProcess::RemoteLaunch (char const **argv, launch_flags); Module *exe_module = process_sp->GetTarget().GetExecutableModulePointer(); if (exe_module) - launch_info.SetExecutableFile(exe_module->GetFileSpec(), true); + launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), true); if (argv) launch_info.GetArguments().AppendArguments (argv); if (envp)