#NEWLINE# def __init__( self , host = None ) : #NEWLINE# #INDENT# self . listeners = [ ] #NEWLINE# self . host_lock = threading . RLock ( ) #NEWLINE# if host : #NEWLINE# #INDENT# log . debug ( 'Passed a debugger host' ) #NEWLINE# self . host = host #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if lldb . debugger : #NEWLINE# #INDENT# log . debug ( 'lldb.debugger is valid - probably running inside LLDB' ) #NEWLINE# self . host = lldb . debugger #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . debug ( 'No debugger host found - creating one' ) #NEWLINE# self . host = lldb . SBDebugger . Create ( ) #NEWLINE# self . host . SetAsync ( False )