LLDB  mainline
Classes | Functions | Variables
embedded_interpreter Namespace Reference

Classes

class  LLDBQuitter
 

Functions

def setquit ()
 
def get_terminal_size (fd)
 
def readfunc_stdio (prompt)
 
def run_python_interpreter (local_dict)
 
def run_one_line (local_dict, input_string)
 

Variables

bool have_readline = False
 
bool g_builtin_override_called = False
 
 g_run_one_line_str = None
 

Function Documentation

◆ get_terminal_size()

def embedded_interpreter.get_terminal_size (   fd)

Definition at line 62 of file embedded_interpreter.py.

Referenced by run_python_interpreter().

◆ readfunc_stdio()

def embedded_interpreter.readfunc_stdio (   prompt)

Definition at line 73 of file embedded_interpreter.py.

◆ run_one_line()

def embedded_interpreter.run_one_line (   local_dict,
  input_string 
)

Definition at line 126 of file embedded_interpreter.py.

References setquit().

◆ run_python_interpreter()

def embedded_interpreter.run_python_interpreter (   local_dict)

Definition at line 84 of file embedded_interpreter.py.

References get_terminal_size(), and setquit().

◆ setquit()

def embedded_interpreter.setquit ( )
Redefine builtin functions 'quit()' and 'exit()' to print a message and raise an EOFError exception.

Definition at line 43 of file embedded_interpreter.py.

Referenced by run_one_line(), and run_python_interpreter().

Variable Documentation

◆ g_builtin_override_called

bool embedded_interpreter.g_builtin_override_called = False

Definition at line 26 of file embedded_interpreter.py.

◆ g_run_one_line_str

embedded_interpreter.g_run_one_line_str = None

Definition at line 59 of file embedded_interpreter.py.

◆ have_readline

bool embedded_interpreter.have_readline = False

Definition at line 14 of file embedded_interpreter.py.