[Lldb-commits] [lldb] r281922 - Try to fix freebsd and android builds.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 19 11:03:54 PDT 2016
Author: zturner
Date: Mon Sep 19 13:03:54 2016
New Revision: 281922
URL: http://llvm.org/viewvc/llvm-project?rev=281922&view=rev
Log:
Try to fix freebsd and android builds.
Modified:
lldb/trunk/source/Host/freebsd/Host.cpp
lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp
Modified: lldb/trunk/source/Host/freebsd/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/freebsd/Host.cpp?rev=281922&r1=281921&r2=281922&view=diff
==============================================================================
--- lldb/trunk/source/Host/freebsd/Host.cpp (original)
+++ lldb/trunk/source/Host/freebsd/Host.cpp Mon Sep 19 13:03:54 2016
@@ -102,7 +102,7 @@ GetFreeBSDProcessArgs(const ProcessInsta
cstr = data.GetCStr(&offset);
if (cstr)
- proc_args.AppendArgument(cstr);
+ proc_args.AppendArgument(llvm::StringRef(cstr));
else
return true;
}
Modified: lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp?rev=281922&r1=281921&r2=281922&view=diff
==============================================================================
--- lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp (original)
+++ lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp Mon Sep 19 13:03:54 2016
@@ -36,7 +36,7 @@ static void FixupEnvironment(Args &env)
for (const char **args = env.GetConstArgumentVector(); *args; ++args)
if (::strncmp(path, *args, path_len) == 0)
return;
- env.AppendArgument("PATH=/system/bin");
+ env.AppendArgument(llvm::StringRef("PATH=/system/bin"));
#endif
}
More information about the lldb-commits
mailing list