diff options
| -rw-r--r-- | lldb/source/Host/macosx/objcxx/Host.mm | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lldb/source/Host/macosx/objcxx/Host.mm b/lldb/source/Host/macosx/objcxx/Host.mm index 297a052ac8e..ec876837d59 100644 --- a/lldb/source/Host/macosx/objcxx/Host.mm +++ b/lldb/source/Host/macosx/objcxx/Host.mm @@ -1273,21 +1273,19 @@ static bool ShouldLaunchUsingXPC(ProcessLaunchInfo &launch_info) { Status Host::LaunchProcess(ProcessLaunchInfo &launch_info) { Status error; + + FileSystem &fs = FileSystem::Instance(); FileSpec exe_spec(launch_info.GetExecutableFile()); - llvm::sys::fs::file_status stats; - status(exe_spec.GetPath(), stats); - if (!exists(stats)) { + if (!fs.Exists(exe_spec)) FileSystem::Instance().Resolve(exe_spec); - status(exe_spec.GetPath(), stats); - } - if (!exists(stats)) { + + if (!fs.Exists(exe_spec)) FileSystem::Instance().ResolveExecutableLocation(exe_spec); - status(exe_spec.GetPath(), stats); - } - if (!exists(stats)) { + + if (!fs.Exists(exe_spec)) { error.SetErrorStringWithFormatv("executable doesn't exist: '{0}'", - launch_info.GetExecutableFile()); + exe_spec); return error; } |

