[Lldb-commits] [lldb] r169750 - /lldb/trunk/scripts/Python/modify-python-lldb.py

Greg Clayton gclayton at apple.com
Mon Dec 10 11:18:23 PST 2012


Author: gclayton
Date: Mon Dec 10 13:18:23 2012
New Revision: 169750

URL: http://llvm.org/viewvc/llvm-project?rev=169750&view=rev
Log:
Make sure that the lldb globals:
    lldb.target
    lldb.process
    lldb.thread
    lldb.frame

are initialized to at least contain empty lldb classes in case some python gets imported that uses them.


Modified:
    lldb/trunk/scripts/Python/modify-python-lldb.py

Modified: lldb/trunk/scripts/Python/modify-python-lldb.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modify-python-lldb.py?rev=169750&r1=169749&r2=169750&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Mon Dec 10 13:18:23 2012
@@ -433,5 +433,11 @@
 
 with open(output_name, 'w') as f_out:
     f_out.write(new_content.getvalue())
-    f_out.write("debugger_unique_id = 0\n")
-    f_out.write("SBDebugger.Initialize()\n")
+    f_out.write('''debugger_unique_id = 0
+SBDebugger.Initialize()
+debugger = None
+target = SBTarget()
+process = SBProcess()
+thread = SBThread()
+frame = SBFrame()''')
+





More information about the lldb-commits mailing list