mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-05 00:49:43 +00:00
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. llvm-svn: 357755
This commit is contained in:
parent
ebdc698dbc
commit
78a514bf9d
@ -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()''')
|
||||
|
@ -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()
|
||||
%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user