#NEWLINE# @ lock_host #NEWLINE# def command( self , command = None ) : #NEWLINE# #INDENT# '\n            Execute a command in the debugger.\n\n            `command` is the command string to execute.\n            ' #NEWLINE# if command : #NEWLINE# #INDENT# res = lldb . SBCommandReturnObject ( ) #NEWLINE# ci = self . host . GetCommandInterpreter ( ) #NEWLINE# ci . HandleCommand ( str ( command ) , res , False ) #NEWLINE# if res . Succeeded ( ) : #NEWLINE# #INDENT# return res . GetOutput ( ) . strip ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( res . GetError ( ) . strip ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'No command specified' )