Make sure that the lldb globals:

lldb.target
    lldb.process
    lldb.thread
    lldb.frame

are initialized to at least contain empty lldb classes in case some python gets imported that uses them.

llvm-svn: 169750
This commit is contained in:
Greg Clayton 2012-12-10 19:18:23 +00:00
parent f7cbcf2648
commit bc41bf70bd
1 changed files with 8 additions and 2 deletions

View File

@ -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()''')