summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2018-11-04 23:19:25 +0000
committerDavid Carlier <devnexen@gmail.com>2018-11-04 23:19:25 +0000
commit511e1cf1ef2a156e38e00003759074ba73484204 (patch)
tree5603658df4141354c05da3076da1bf6dc9a7adb4 /lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp
parentd2a895a9720e32e2f52e1ce10d2ba4769a034aa2 (diff)
downloadbcm5719-llvm-511e1cf1ef2a156e38e00003759074ba73484204.tar.gz
bcm5719-llvm-511e1cf1ef2a156e38e00003759074ba73484204.zip
[LLDB] Fix FreeBSD/Darwin build
Reviewers: JDevlieghere, tatyana-krasnukha Reviwed By: tatyana-krasnukha Differential Revision: https://reviews.llvm.org/D54084 llvm-svn: 346109
Diffstat (limited to 'lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp')
-rw-r--r--lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp b/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp
index 557de955de8..977da2f0ecc 100644
--- a/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp
+++ b/lldb/source/Plugins/Process/Darwin/NativeProcessDarwin.cpp
@@ -63,12 +63,13 @@ Status NativeProcessProtocol::Launch(
// Verify the working directory is valid if one was specified.
FileSpec working_dir(launch_info.GetWorkingDirectory());
- if (working_dir &&
- (!working_dir.ResolvePath() ||
- !llvm::sys::fs::is_directory(working_dir.GetPath())) {
- error.SetErrorStringWithFormat("No such file or directory: %s",
+ if (working_dir) {
+ FileInstance::Instance().Resolve(working_dir);
+ if (!llvm::sys::fs::is_directory(working_dir.GetPath())) {
+ error.SetErrorStringWithFormat("No such file or directory: %s",
working_dir.GetCString());
- return error;
+ return error;
+ }
}
// Launch the inferior.
OpenPOWER on IntegriCloud