diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:48:25 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:48:25 +0000 |
| commit | f678e45dc4469314acdd381171b56060b4e61272 (patch) | |
| tree | 981686fed7982ab8e5f0f696e0b0f91f89324256 /contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp | |
| parent | 46b69c69334114d2a2b5c70f29d5e5fc2aa2d084 (diff) | |
| parent | 74a628f776edb588bff8f8f5cc16eac947c9d631 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp b/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp index e56375ebaa49f..65ab12fe1adf3 100644 --- a/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp +++ b/contrib/llvm/tools/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp @@ -19,11 +19,11 @@ // C++ includes // LLDB includes -#include "lldb/Core/Log.h" #include "lldb/Core/State.h" -#include "lldb/Core/StreamString.h" +#include "lldb/Host/PseudoTerminal.h" #include "lldb/Target/ProcessLaunchInfo.h" -#include "lldb/Utility/PseudoTerminal.h" +#include "lldb/Utility/Log.h" +#include "lldb/Utility/StreamString.h" #include "CFBundle.h" #include "CFString.h" @@ -31,6 +31,8 @@ #include "MachException.h" +#include "llvm/Support/FileSystem.h" + using namespace lldb; using namespace lldb_private; using namespace lldb_private::process_darwin; @@ -63,7 +65,7 @@ Error NativeProcessProtocol::Launch( FileSpec working_dir(launch_info.GetWorkingDirectory()); if (working_dir && (!working_dir.ResolvePath() || - working_dir.GetFileType() != FileSpec::eFileTypeDirectory)) { + !llvm::sys::fs::is_directory(working_dir.GetPath())) { error.SetErrorStringWithFormat("No such file or directory: %s", working_dir.GetCString()); return error; |
