[lldb-dev] [patch] FreeBSD build fix

Pawel Worach pawel.worach at gmail.com
Tue Mar 20 17:52:28 PDT 2012


Index: source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
===================================================================
--- source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp	(revision 153128)
+++ source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp	(working copy)
@@ -73,7 +73,7 @@ PlatformFreeBSD::Initialize ()
     if (!g_initialized)
     {
 #if defined (__FreeBSD__)
-        PlatformSP default_platform_sp (CreateInstance());
+        PlatformSP default_platform_sp (new PlatformFreeBSD(true));
         default_platform_sp->SetSystemArchitecture (Host::GetArchitecture());
         Platform::SetDefaultPlatform (default_platform_sp);
 #endif

However now it just quits immediately, any ideas ?
tcsh% ./Release+Asserts/bin/lldb /bin/sh
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named embedded_interpreter
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named embedded_interpreter
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named embedded_interpreter
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Current executable set to '/bin/sh' (x86_64). 
tcsh% 

-- 
Pawel





More information about the lldb-dev mailing list