diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 4345ea26bba9..61ac68403573 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -433,5 +433,11 @@ new_content.finish() 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()''') +