[Lldb-commits] [lldb] r297120 - Fix FreeBSD build.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 6 20:58:53 PST 2017
Author: zturner
Date: Mon Mar 6 22:58:53 2017
New Revision: 297120
URL: http://llvm.org/viewvc/llvm-project?rev=297120&view=rev
Log:
Fix FreeBSD build.
Modified:
lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp?rev=297120&r1=297119&r2=297120&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp Mon Mar 6 22:58:53 2017
@@ -362,8 +362,9 @@ Error ProcessFreeBSD::DoLaunch(Module *m
assert(m_monitor == NULL);
FileSpec working_dir = launch_info.GetWorkingDirectory();
- if (working_dir &&
- (!working_dir.ResolvePath() || !llvm::sys::fs::is_directory(working_dir.GetPath())) {
+ namespace fs = llvm::sys::fs;
+ if (working_dir && (!working_dir.ResolvePath() ||
+ !fs::is_directory(working_dir.GetPath()))) {
error.SetErrorStringWithFormat("No such file or directory: %s",
working_dir.GetCString());
return error;
More information about the lldb-commits
mailing list