diff options
| -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() +%} |

