[Lldb-commits] [lldb] r122275 - /lldb/trunk/source/Host/common/Host.cpp
Johnny Chen
johnny.chen at apple.com
Mon Dec 20 13:52:18 PST 2010
Author: johnny
Date: Mon Dec 20 15:52:18 2010
New Revision: 122275
URL: http://llvm.org/viewvc/llvm-project?rev=122275&view=rev
Log:
Patch from Stephen:
Provide a missing resolve_path argument in calls to FileSpec's
constructor for both Linux and FreeBSD code fragments.
Modified:
lldb/trunk/source/Host/common/Host.cpp
Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=122275&r1=122274&r2=122275&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Mon Dec 20 15:52:18 2010
@@ -622,7 +622,7 @@
char exe_path[PATH_MAX];
ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path));
if (len >= 0)
- g_program_filespec = FileSpec(exe_path);
+ g_program_filespec = FileSpec(exe_path, true);
#elif defined (__FreeBSD__)
int exe_path_mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, getpid() };
size_t exe_path_size;
@@ -630,7 +630,7 @@
{
char *exe_path = new char[exe_path_size];
if (sysctl(exe_path_mib, 4, exe_path, &exe_path_size, NULL, 0) == 0)
- g_program_filespec = FileSpec(exe_path);
+ g_program_filespec = FileSpec(exe_path, true);
}
#endif
}
More information about the lldb-commits
mailing list