[Lldb-commits] [lldb] r357755 - modify-python-lldb.py: Insert initialization code with swig instead
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 5 02:56:55 PDT 2019
Author: labath
Date: Fri Apr 5 02:56:55 2019
New Revision: 357755
URL: http://llvm.org/viewvc/llvm-project?rev=357755&view=rev
Log:
modify-python-lldb.py: Insert initialization code with swig instead
This is the last functional change to the generated python module being
done by modify-python-lldb.py. The remaining code just deals with
reformatting of comments.
Modified:
lldb/trunk/scripts/Python/modify-python-lldb.py
lldb/trunk/scripts/lldb.swig
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=357755&r1=357754&r2=357755&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Fri Apr 5 02:56:55 2019
@@ -166,10 +166,3 @@ new_content.finish()
with open(output_name, 'w') as f_out:
f_out.write(new_content.getvalue())
- f_out.write('''debugger_unique_id = 0
-SBDebugger.Initialize()
-debugger = None
-target = SBTarget()
-process = SBProcess()
-thread = SBThread()
-frame = SBFrame()''')
Modified: lldb/trunk/scripts/lldb.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=357755&r1=357754&r2=357755&view=diff
==============================================================================
--- lldb/trunk/scripts/lldb.swig (original)
+++ lldb/trunk/scripts/lldb.swig Fri Apr 5 02:56:55 2019
@@ -260,3 +260,13 @@ def lldb_iter(obj, getsize, getelem):
%include "./Python/python-extensions.swig"
%include "./Python/python-wrapper.swig"
+
+%pythoncode%{
+debugger_unique_id = 0
+SBDebugger.Initialize()
+debugger = None
+target = SBTarget()
+process = SBProcess()
+thread = SBThread()
+frame = SBFrame()
+%}
More information about the lldb-commits
mailing list