diff options
author | Pavel Labath <pavel@labath.sk> | 2019-04-05 09:56:55 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-04-05 09:56:55 +0000 |
commit | 78a514bf9d8d16358d51bda32ff74be23ff4f4e5 (patch) | |
tree | 65463d6662a08a170cd9f1acf998b9bcf119526b | |
parent | ebdc698dbc00ee9c48d2c022bf2a7c828f696674 (diff) | |
download | bcm5719-llvm-78a514bf9d8d16358d51bda32ff74be23ff4f4e5.tar.gz bcm5719-llvm-78a514bf9d8d16358d51bda32ff74be23ff4f4e5.zip |
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
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 7 | ||||
-rw-r--r-- | lldb/scripts/lldb.swig | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 9ade673d511..ea33c0b936d 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -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()''') diff --git a/lldb/scripts/lldb.swig b/lldb/scripts/lldb.swig index 0137a093af4..3cad53ad762 100644 --- a/lldb/scripts/lldb.swig +++ b/lldb/scripts/lldb.swig @@ -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() +%} |