[Lldb-commits] [lldb] r123355 - /lldb/trunk/source/Host/common/Host.cpp
Greg Clayton
gclayton at apple.com
Wed Jan 12 17:23:43 PST 2011
Author: gclayton
Date: Wed Jan 12 19:23:43 2011
New Revision: 123355
URL: http://llvm.org/viewvc/llvm-project?rev=123355&view=rev
Log:
Don't have the program path be resolved when they already are when assigning g_program_filespec in the Host calls.
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=123355&r1=123354&r2=123355&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Wed Jan 12 19:23:43 2011
@@ -607,14 +607,14 @@
uint32_t len = sizeof(program_fullpath);
int err = _NSGetExecutablePath (program_fullpath, &len);
if (err == 0)
- g_program_filespec.SetFile (program_fullpath, true);
+ g_program_filespec.SetFile (program_fullpath, false);
else if (err == -1)
{
char *large_program_fullpath = (char *)::malloc (len + 1);
err = _NSGetExecutablePath (large_program_fullpath, &len);
if (err == 0)
- g_program_filespec.SetFile (large_program_fullpath, true);
+ g_program_filespec.SetFile (large_program_fullpath, false);
::free (large_program_fullpath);
}
@@ -623,7 +623,7 @@
ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path) - 1);
if (len > 0) {
exe_path[len] = 0;
- g_program_filespec = FileSpec(exe_path, true);
+ g_program_filespec.SetFile(exe_path, false);
}
#elif defined (__FreeBSD__)
int exe_path_mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, getpid() };
@@ -632,7 +632,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, true);
+ g_program_filespec = FileSpec(exe_path, false);
}
#endif
}
More information about the lldb-commits
mailing list