[Lldb-commits] [lldb] r123356 - /lldb/trunk/source/Host/common/Host.cpp

Greg Clayton gclayton at apple.com
Wed Jan 12 17:25:48 PST 2011


Author: gclayton
Date: Wed Jan 12 19:25:48 2011
New Revision: 123356

URL: http://llvm.org/viewvc/llvm-project?rev=123356&view=rev
Log:
Call SetFile instead of constructing a temp object and assigning to g_program_filespec for Free BSD port.

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=123356&r1=123355&r2=123356&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Wed Jan 12 19:25:48 2011
@@ -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, false);
+              g_program_filespec.SetFile(exe_path, false);
         }
 #endif
     }





More information about the lldb-commits mailing list