1<?xml version="1.0" encoding="ascii"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "DTD/xhtml1-transitional.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5<head> 6 <title>lldb.embedded_interpreter</title> 7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> 8 <script type="text/javascript" src="epydoc.js"></script> 9</head> 10 11<body bgcolor="white" text="black" link="blue" vlink="#204080" 12 alink="#204080"> 13<!-- ==================== NAVIGATION BAR ==================== --> 14<table class="navbar" border="0" width="100%" cellpadding="0" 15 bgcolor="#a0c0ff" cellspacing="0"> 16 <tr valign="middle"> 17 18 <!-- Tree link --> 19 <th> <a 20 href="module-tree.html">Trees</a> </th> 21 22 <!-- Index link --> 23 <th> <a 24 href="identifier-index.html">Indices</a> </th> 25 26 <!-- Help link --> 27 <th> <a 28 href="help.html">Help</a> </th> 29 30 <!-- Project homepage --> 31 <th class="navbar" align="right" width="100%"> 32 <table border="0" cellpadding="0" cellspacing="0"> 33 <tr><th class="navbar" align="center" 34 ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th> 35 </tr></table></th> 36 </tr> 37</table> 38<table width="100%" cellpadding="0" cellspacing="0"> 39 <tr valign="top"> 40 <td width="100%"> 41 <span class="breadcrumbs"> 42 <a href="lldb-module.html">Package lldb</a> :: 43 Module embedded_interpreter 44 </span> 45 </td> 46 <td> 47 <table cellpadding="0" cellspacing="0"> 48 <!-- hide/show private --> 49 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" 50 onclick="toggle_private();">hide private</a>]</span></td></tr> 51 <tr><td align="right"><span class="options" 52 >[<a href="frames.html" target="_top">frames</a 53 >] | <a href="lldb.embedded_interpreter-pysrc.html" 54 target="_top">no frames</a>]</span></td></tr> 55 </table> 56 </td> 57 </tr> 58</table> 59<h1 class="epydoc">Source Code for <a href="lldb.embedded_interpreter-module.html">Module lldb.embedded_interpreter</a></h1> 60<pre class="py-src"> 61<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">readline</tt> </tt> 62<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">code</tt> </tt> 63<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt> 64<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">traceback</tt> </tt> 65<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"> </tt> 66<a name="SimpleREPL"></a><div id="SimpleREPL-def"><a name="L6"></a><tt class="py-lineno"> 6</tt> <a class="py-toggle" href="#" id="SimpleREPL-toggle" onclick="return toggle('SimpleREPL');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html">SimpleREPL</a><tt class="py-op">(</tt><tt class="py-base-class">code</tt><tt class="py-op">.</tt><tt class="py-base-class">InteractiveConsole</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 67</div><div id="SimpleREPL-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SimpleREPL-expanded"><a name="SimpleREPL.__init__"></a><div id="SimpleREPL.__init__-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="SimpleREPL.__init__-toggle" onclick="return toggle('SimpleREPL.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">prompt</tt><tt class="py-op">,</tt> <tt class="py-param">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 68</div><div id="SimpleREPL.__init__-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.__init__-expanded"><a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"> <tt class="py-name">code</tt><tt class="py-op">.</tt><tt class="py-name">InteractiveConsole</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Method lldb.SBAddress.__init__()=lldb.SBAddress-class.html#__init__,Method lldb.SBAttachInfo.__init__()=lldb.SBAttachInfo-class.html#__init__,Method lldb.SBBlock.__init__()=lldb.SBBlock-class.html#__init__,Method lldb.SBBlock.ranges_access.__init__()=lldb.SBBlock.ranges_access-class.html#__init__,Method lldb.SBBreakpoint.__init__()=lldb.SBBreakpoint-class.html#__init__,Method lldb.SBBreakpointLocation.__init__()=lldb.SBBreakpointLocation-class.html#__init__,Method lldb.SBBroadcaster.__init__()=lldb.SBBroadcaster-class.html#__init__,Method lldb.SBCommandInterpreter.__init__()=lldb.SBCommandInterpreter-class.html#__init__,Method lldb.SBCommandReturnObject.__init__()=lldb.SBCommandReturnObject-class.html#__init__,Method lldb.SBCommunication.__init__()=lldb.SBCommunication-class.html#__init__,Method lldb.SBCompileUnit.__init__()=lldb.SBCompileUnit-class.html#__init__,Method lldb.SBData.__init__()=lldb.SBData-class.html#__init__,Method lldb.SBData.read_data_helper.__init__()=lldb.SBData.read_data_helper-class.html#__init__,Method lldb.SBDebugger.__init__()=lldb.SBDebugger-class.html#__init__,Method lldb.SBDeclaration.__init__()=lldb.SBDeclaration-class.html#__init__,Method lldb.SBError.__init__()=lldb.SBError-class.html#__init__,Method lldb.SBEvent.__init__()=lldb.SBEvent-class.html#__init__,Method lldb.SBExpressionOptions.__init__()=lldb.SBExpressionOptions-class.html#__init__,Method lldb.SBFileSpec.__init__()=lldb.SBFileSpec-class.html#__init__,Method lldb.SBFileSpecList.__init__()=lldb.SBFileSpecList-class.html#__init__,Method lldb.SBFrame.__init__()=lldb.SBFrame-class.html#__init__,Method lldb.SBFunction.__init__()=lldb.SBFunction-class.html#__init__,Method lldb.SBHostOS.__init__()=lldb.SBHostOS-class.html#__init__,Method lldb.SBInputReader.__init__()=lldb.SBInputReader-class.html#__init__,Method lldb.SBInstruction.__init__()=lldb.SBInstruction-class.html#__init__,Method lldb.SBInstructionList.__init__()=lldb.SBInstructionList-class.html#__init__,Method lldb.SBLaunchInfo.__init__()=lldb.SBLaunchInfo-class.html#__init__,Method lldb.SBLineEntry.__init__()=lldb.SBLineEntry-class.html#__init__,Method lldb.SBListener.__init__()=lldb.SBListener-class.html#__init__,Method lldb.SBModule.__init__()=lldb.SBModule-class.html#__init__,Method lldb.SBModule.compile_units_access.__init__()=lldb.SBModule.compile_units_access-class.html#__init__,Method lldb.SBModule.sections_access.__init__()=lldb.SBModule.sections_access-class.html#__init__,Method lldb.SBModule.symbols_access.__init__()=lldb.SBModule.symbols_access-class.html#__init__,Method lldb.SBModuleSpec.__init__()=lldb.SBModuleSpec-class.html#__init__,Method lldb.SBModuleSpecList.__init__()=lldb.SBModuleSpecList-class.html#__init__,Method lldb.SBProcess.__init__()=lldb.SBProcess-class.html#__init__,Method lldb.SBProcess.threads_access.__init__()=lldb.SBProcess.threads_access-class.html#__init__,Method lldb.SBSection.__init__()=lldb.SBSection-class.html#__init__,Method lldb.SBSourceManager.__init__()=lldb.SBSourceManager-class.html#__init__,Method lldb.SBStream.__init__()=lldb.SBStream-class.html#__init__,Method lldb.SBStringList.__init__()=lldb.SBStringList-class.html#__init__,Method lldb.SBSymbol.__init__()=lldb.SBSymbol-class.html#__init__,Method lldb.SBSymbolContext.__init__()=lldb.SBSymbolContext-class.html#__init__,Method lldb.SBSymbolContextList.__init__()=lldb.SBSymbolContextList-class.html#__init__,Method lldb.SBTarget.__init__()=lldb.SBTarget-class.html#__init__,Method lldb.SBTarget.modules_access.__init__()=lldb.SBTarget.modules_access-class.html#__init__,Method lldb.SBThread.__init__()=lldb.SBThread-class.html#__init__,Method lldb.SBThread.frames_access.__init__()=lldb.SBThread.frames_access-class.html#__init__,Method lldb.SBType.__init__()=lldb.SBType-class.html#__init__,Method lldb.SBTypeCategory.__init__()=lldb.SBTypeCategory-class.html#__init__,Method lldb.SBTypeCategory.formatters_access_class.__init__()=lldb.SBTypeCategory.formatters_access_class-class.html#__init__,Method lldb.SBTypeFilter.__init__()=lldb.SBTypeFilter-class.html#__init__,Method lldb.SBTypeFormat.__init__()=lldb.SBTypeFormat-class.html#__init__,Method lldb.SBTypeList.__init__()=lldb.SBTypeList-class.html#__init__,Method lldb.SBTypeMember.__init__()=lldb.SBTypeMember-class.html#__init__,Method lldb.SBTypeNameSpecifier.__init__()=lldb.SBTypeNameSpecifier-class.html#__init__,Method lldb.SBTypeSummary.__init__()=lldb.SBTypeSummary-class.html#__init__,Method lldb.SBTypeSynthetic.__init__()=lldb.SBTypeSynthetic-class.html#__init__,Method lldb.SBValue.__init__()=lldb.SBValue-class.html#__init__,Method lldb.SBValueList.__init__()=lldb.SBValueList-class.html#__init__,Method lldb.SBWatchpoint.__init__()=lldb.SBWatchpoint-class.html#__init__,Method lldb.declaration.__init__()=lldb.declaration-class.html#__init__,Method lldb.embedded_interpreter.SimpleREPL.__init__()=lldb.embedded_interpreter.SimpleREPL-class.html#__init__,Method lldb.formatters.Logger.FileLogger.__init__()=lldb.formatters.Logger.FileLogger-class.html#__init__,Method lldb.formatters.Logger.Logger.__init__()=lldb.formatters.Logger.Logger-class.html#__init__,Method lldb.formatters.Logger.NopLogger.__init__()=lldb.formatters.Logger.NopLogger-class.html#__init__,Method lldb.formatters.Logger.StdoutLogger.__init__()=lldb.formatters.Logger.StdoutLogger-class.html#__init__,Method lldb.formatters.attrib_fromdict.AttributesDictionary.__init__()=lldb.formatters.attrib_fromdict.AttributesDictionary-class.html#__init__,Method lldb.formatters.cache.Cache.__init__()=lldb.formatters.cache.Cache-class.html#__init__,Method lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.__init__()=lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider-class.html#__init__,Method lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider.__init__()=lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider-class.html#__init__,Method lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider.__init__()=lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider-class.html#__init__,Method lldb.formatters.cpp.libcxx.stddeque_SynthProvider.__init__()=lldb.formatters.cpp.libcxx.stddeque_SynthProvider-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdlist_SynthProvider.__init__()=lldb.formatters.cpp.libcxx.stdlist_SynthProvider-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdlist_entry.__init__()=lldb.formatters.cpp.libcxx.stdlist_entry-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdlist_iterator.__init__()=lldb.formatters.cpp.libcxx.stdlist_iterator-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdmap_SynthProvider.__init__()=lldb.formatters.cpp.libcxx.stdmap_SynthProvider-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdmap_iterator.__init__()=lldb.formatters.cpp.libcxx.stdmap_iterator-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdmap_iterator_node.__init__()=lldb.formatters.cpp.libcxx.stdmap_iterator_node-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider.__init__()=lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider-class.html#__init__,Method lldb.formatters.cpp.libcxx.stdvector_SynthProvider.__init__()=lldb.formatters.cpp.libcxx.stdvector_SynthProvider-class.html#__init__,Method lldb.formatters.metrics.Counter.__init__()=lldb.formatters.metrics.Counter-class.html#__init__,Method lldb.formatters.metrics.Metrics.__init__()=lldb.formatters.metrics.Metrics-class.html#__init__,Method lldb.formatters.metrics.MetricsPrinter_Compact.__init__()=lldb.formatters.metrics.MetricsPrinter_Compact-class.html#__init__,Method lldb.formatters.metrics.MetricsPrinter_Verbose.__init__()=lldb.formatters.metrics.MetricsPrinter_Verbose-class.html#__init__,Method lldb.formatters.metrics.TimeMetrics.__init__()=lldb.formatters.metrics.TimeMetrics-class.html#__init__,Method lldb.utils.symbolication.Address.__init__()=lldb.utils.symbolication.Address-class.html#__init__,Method lldb.utils.symbolication.Image.__init__()=lldb.utils.symbolication.Image-class.html#__init__,Method lldb.utils.symbolication.Section.__init__()=lldb.utils.symbolication.Section-class.html#__init__,Method lldb.utils.symbolication.Symbolicator.__init__()=lldb.utils.symbolication.Symbolicator-class.html#__init__,Method lldb.value.__init__()=lldb.value-class.html#__init__,Method lldb.value_iter.__init__()=lldb.value_iter-class.html#__init__"><a title="lldb.SBAddress.__init__ 69lldb.SBAttachInfo.__init__ 70lldb.SBBlock.__init__ 71lldb.SBBlock.ranges_access.__init__ 72lldb.SBBreakpoint.__init__ 73lldb.SBBreakpointLocation.__init__ 74lldb.SBBroadcaster.__init__ 75lldb.SBCommandInterpreter.__init__ 76lldb.SBCommandReturnObject.__init__ 77lldb.SBCommunication.__init__ 78lldb.SBCompileUnit.__init__ 79lldb.SBData.__init__ 80lldb.SBData.read_data_helper.__init__ 81lldb.SBDebugger.__init__ 82lldb.SBDeclaration.__init__ 83lldb.SBError.__init__ 84lldb.SBEvent.__init__ 85lldb.SBExpressionOptions.__init__ 86lldb.SBFileSpec.__init__ 87lldb.SBFileSpecList.__init__ 88lldb.SBFrame.__init__ 89lldb.SBFunction.__init__ 90lldb.SBHostOS.__init__ 91lldb.SBInputReader.__init__ 92lldb.SBInstruction.__init__ 93lldb.SBInstructionList.__init__ 94lldb.SBLaunchInfo.__init__ 95lldb.SBLineEntry.__init__ 96lldb.SBListener.__init__ 97lldb.SBModule.__init__ 98lldb.SBModule.compile_units_access.__init__ 99lldb.SBModule.sections_access.__init__ 100lldb.SBModule.symbols_access.__init__ 101lldb.SBModuleSpec.__init__ 102lldb.SBModuleSpecList.__init__ 103lldb.SBProcess.__init__ 104lldb.SBProcess.threads_access.__init__ 105lldb.SBSection.__init__ 106lldb.SBSourceManager.__init__ 107lldb.SBStream.__init__ 108lldb.SBStringList.__init__ 109lldb.SBSymbol.__init__ 110lldb.SBSymbolContext.__init__ 111lldb.SBSymbolContextList.__init__ 112lldb.SBTarget.__init__ 113lldb.SBTarget.modules_access.__init__ 114lldb.SBThread.__init__ 115lldb.SBThread.frames_access.__init__ 116lldb.SBType.__init__ 117lldb.SBTypeCategory.__init__ 118lldb.SBTypeCategory.formatters_access_class.__init__ 119lldb.SBTypeFilter.__init__ 120lldb.SBTypeFormat.__init__ 121lldb.SBTypeList.__init__ 122lldb.SBTypeMember.__init__ 123lldb.SBTypeNameSpecifier.__init__ 124lldb.SBTypeSummary.__init__ 125lldb.SBTypeSynthetic.__init__ 126lldb.SBValue.__init__ 127lldb.SBValueList.__init__ 128lldb.SBWatchpoint.__init__ 129lldb.declaration.__init__ 130lldb.embedded_interpreter.SimpleREPL.__init__ 131lldb.formatters.Logger.FileLogger.__init__ 132lldb.formatters.Logger.Logger.__init__ 133lldb.formatters.Logger.NopLogger.__init__ 134lldb.formatters.Logger.StdoutLogger.__init__ 135lldb.formatters.attrib_fromdict.AttributesDictionary.__init__ 136lldb.formatters.cache.Cache.__init__ 137lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.__init__ 138lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider.__init__ 139lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider.__init__ 140lldb.formatters.cpp.libcxx.stddeque_SynthProvider.__init__ 141lldb.formatters.cpp.libcxx.stdlist_SynthProvider.__init__ 142lldb.formatters.cpp.libcxx.stdlist_entry.__init__ 143lldb.formatters.cpp.libcxx.stdlist_iterator.__init__ 144lldb.formatters.cpp.libcxx.stdmap_SynthProvider.__init__ 145lldb.formatters.cpp.libcxx.stdmap_iterator.__init__ 146lldb.formatters.cpp.libcxx.stdmap_iterator_node.__init__ 147lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider.__init__ 148lldb.formatters.cpp.libcxx.stdvector_SynthProvider.__init__ 149lldb.formatters.metrics.Counter.__init__ 150lldb.formatters.metrics.Metrics.__init__ 151lldb.formatters.metrics.MetricsPrinter_Compact.__init__ 152lldb.formatters.metrics.MetricsPrinter_Verbose.__init__ 153lldb.formatters.metrics.TimeMetrics.__init__ 154lldb.utils.symbolication.Address.__init__ 155lldb.utils.symbolication.Image.__init__ 156lldb.utils.symbolication.Section.__init__ 157lldb.utils.symbolication.Symbolicator.__init__ 158lldb.value.__init__ 159lldb.value_iter.__init__" class="py-name" href="#" onclick="return doclink('link-0', '__init__', 'link-0');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">dict</tt><tt class="py-op">)</tt> </tt> 160<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">prompt</tt> <tt class="py-op">=</tt> <tt class="py-name">prompt</tt> </tt> 161<a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">loop_exit</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt> 162<a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dict</tt> <tt class="py-op">=</tt> <tt class="py-name">dict</tt> </tt> 163</div><a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"> </tt> 164<a name="SimpleREPL.interact"></a><div id="SimpleREPL.interact-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="SimpleREPL.interact-toggle" onclick="return toggle('SimpleREPL.interact');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#interact">interact</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 165</div><div id="SimpleREPL.interact-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.interact-expanded"><a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt> 166<a name="L15"></a><tt class="py-lineno"> 15</tt> <tt class="py-line"> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps1</tt> </tt> 167<a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">:</tt> </tt> 168<a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps1</tt> <tt class="py-op">=</tt> <tt class="py-string">">>> "</tt> </tt> 169<a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt> 170<a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps2</tt> </tt> 171<a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">:</tt> </tt> 172<a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps2</tt> <tt class="py-op">=</tt> <tt class="py-string">"... "</tt> </tt> 173<a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"> </tt> 174<a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">loop_exit</tt><tt class="py-op">:</tt> </tt> 175<a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt> 176<a name="L25"></a><tt class="py-lineno"> 25</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Method lldb.embedded_interpreter.SimpleREPL.read_py_command()=lldb.embedded_interpreter.SimpleREPL-class.html#read_py_command"><a title="lldb.embedded_interpreter.SimpleREPL.read_py_command" class="py-name" href="#" onclick="return doclink('link-1', 'read_py_command', 'link-1');">read_py_command</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 177<a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">SystemExit</tt><tt class="py-op">,</tt> <tt class="py-name">EOFError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 178<a name="L27"></a><tt class="py-lineno"> 27</tt> <tt class="py-line"> <tt class="py-comment"># EOF while in Python just breaks out to top level.</tt> </tt> 179<a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Method lldb.SBCommandReturnObject.write()=lldb.SBCommandReturnObject-class.html#write,Method lldb.SBStream.write()=lldb.SBStream-class.html#write,Method lldb.formatters.Logger.FileLogger.write()=lldb.formatters.Logger.FileLogger-class.html#write,Method lldb.formatters.Logger.Logger.write()=lldb.formatters.Logger.Logger-class.html#write,Method lldb.formatters.Logger.NopLogger.write()=lldb.formatters.Logger.NopLogger-class.html#write,Method lldb.formatters.Logger.StdoutLogger.write()=lldb.formatters.Logger.StdoutLogger-class.html#write"><a title="lldb.SBCommandReturnObject.write 180lldb.SBStream.write 181lldb.formatters.Logger.FileLogger.write 182lldb.formatters.Logger.Logger.write 183lldb.formatters.Logger.NopLogger.write 184lldb.formatters.Logger.StdoutLogger.write" class="py-name" href="#" onclick="return doclink('link-2', 'write', 'link-2');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt> 185<a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">loop_exit</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt> 186<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt> 187<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyboardInterrupt</tt><tt class="py-op">:</tt> </tt> 188<a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="lldb.SBCommandReturnObject.write 189lldb.SBStream.write 190lldb.formatters.Logger.FileLogger.write 191lldb.formatters.Logger.Logger.write 192lldb.formatters.Logger.NopLogger.write 193lldb.formatters.Logger.StdoutLogger.write" class="py-name" href="#" onclick="return doclink('link-3', 'write', 'link-2');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"\nKeyboardInterrupt\n"</tt><tt class="py-op">)</tt> </tt> 194<a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resetbuffer</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 195<a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"> <tt class="py-name">more</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt> 196<a name="L35"></a><tt class="py-lineno"> 35</tt> <tt class="py-line"> <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt> 197<a name="L36"></a><tt class="py-lineno"> 36</tt> <tt class="py-line"> <tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">print_exc</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 198</div><a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> </tt> 199<a name="SimpleREPL.process_input"></a><div id="SimpleREPL.process_input-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="SimpleREPL.process_input-toggle" onclick="return toggle('SimpleREPL.process_input');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#process_input">process_input</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">in_str</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 200</div><div id="SimpleREPL.process_input-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.process_input-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt> <tt class="py-line"> <tt class="py-comment"># Canonicalize the format of the input string</tt> </tt> 201<a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"> <tt class="py-name">temp_str</tt> <tt class="py-op">=</tt> <tt class="py-name">in_str</tt> </tt> 202<a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"> <tt class="py-name">temp_str</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-string">' \t'</tt><tt class="py-op">)</tt> </tt> 203<a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"> <tt class="py-name">words</tt> <tt class="py-op">=</tt> <tt class="py-name">temp_str</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method lldb.SBModule.symbols_access.re_compile_type.split()=lldb.SBModule.symbols_access.re_compile_type-class.html#split"><a title="lldb.SBModule.symbols_access.re_compile_type.split" class="py-name" href="#" onclick="return doclink('link-4', 'split', 'link-4');">split</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 204<a name="L43"></a><tt class="py-lineno"> 43</tt> <tt class="py-line"> <tt class="py-name">temp_str</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">words</tt><tt class="py-op">)</tt> </tt> 205<a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> </tt> 206<a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> <tt class="py-comment"># Check the input string to see if it was the quit</tt> </tt> 207<a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"> <tt class="py-comment"># command. If so, intercept it, so that it doesn't</tt> </tt> 208<a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> <tt class="py-comment"># close stdin on us!</tt> </tt> 209<a name="L48"></a><tt class="py-lineno"> 48</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">temp_str</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">"quit()"</tt> <tt class="py-keyword">or</tt> <tt class="py-name">temp_str</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">"exit()"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 210<a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">loop_exit</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt> 211<a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt class="py-name">in_str</tt> <tt class="py-op">=</tt> <tt class="py-string">"raise SystemExit "</tt> </tt> 212<a name="L51"></a><tt class="py-lineno"> 51</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">in_str</tt> </tt> 213</div><a name="L52"></a><tt class="py-lineno"> 52</tt> <tt class="py-line"> </tt> 214<a name="SimpleREPL.my_raw_input"></a><div id="SimpleREPL.my_raw_input-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="SimpleREPL.my_raw_input-toggle" onclick="return toggle('SimpleREPL.my_raw_input');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#my_raw_input">my_raw_input</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">prompt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 215</div><div id="SimpleREPL.my_raw_input-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.my_raw_input-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt> <tt class="py-line"> <tt class="py-name">stream</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt> </tt> 216<a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> <tt class="py-name">stream</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="lldb.SBCommandReturnObject.write 217lldb.SBStream.write 218lldb.formatters.Logger.FileLogger.write 219lldb.formatters.Logger.Logger.write 220lldb.formatters.Logger.NopLogger.write 221lldb.formatters.Logger.StdoutLogger.write" class="py-name" href="#" onclick="return doclink('link-5', 'write', 'link-2');">write</a></tt> <tt class="py-op">(</tt><tt class="py-name">prompt</tt><tt class="py-op">)</tt> </tt> 222<a name="L56"></a><tt class="py-lineno"> 56</tt> <tt class="py-line"> <tt class="py-name">stream</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method lldb.SBCommandReturnObject.flush()=lldb.SBCommandReturnObject-class.html#flush,Method lldb.SBStream.flush()=lldb.SBStream-class.html#flush,Method lldb.formatters.Logger.FileLogger.flush()=lldb.formatters.Logger.FileLogger-class.html#flush,Method lldb.formatters.Logger.Logger.flush()=lldb.formatters.Logger.Logger-class.html#flush,Method lldb.formatters.Logger.NopLogger.flush()=lldb.formatters.Logger.NopLogger-class.html#flush,Method lldb.formatters.Logger.StdoutLogger.flush()=lldb.formatters.Logger.StdoutLogger-class.html#flush"><a title="lldb.SBCommandReturnObject.flush 223lldb.SBStream.flush 224lldb.formatters.Logger.FileLogger.flush 225lldb.formatters.Logger.Logger.flush 226lldb.formatters.Logger.NopLogger.flush 227lldb.formatters.Logger.StdoutLogger.flush" class="py-name" href="#" onclick="return doclink('link-6', 'flush', 'link-6');">flush</a></tt> <tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 228<a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt> 229<a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdin</tt><tt class="py-op">.</tt><tt class="py-name">readline</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 230<a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyboardInterrupt</tt><tt class="py-op">:</tt> </tt> 231<a name="L60"></a><tt class="py-lineno"> 60</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-string">" \n"</tt> </tt> 232<a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">SystemExit</tt><tt class="py-op">,</tt> <tt class="py-name">EOFError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 233<a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-string">"quit()\n"</tt> </tt> 234<a name="L63"></a><tt class="py-lineno"> 63</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">line</tt><tt class="py-op">:</tt> </tt> 235<a name="L64"></a><tt class="py-lineno"> 64</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">EOFError</tt> </tt> 236<a name="L65"></a><tt class="py-lineno"> 65</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">line</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'\n'</tt><tt class="py-op">:</tt> </tt> 237<a name="L66"></a><tt class="py-lineno"> 66</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">line</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt> 238<a name="L67"></a><tt class="py-lineno"> 67</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">line</tt> </tt> 239</div><a name="L68"></a><tt class="py-lineno"> 68</tt> <tt class="py-line"> </tt> 240<a name="SimpleREPL.read_py_command"></a><div id="SimpleREPL.read_py_command-def"><a name="L69"></a><tt class="py-lineno"> 69</tt> <a class="py-toggle" href="#" id="SimpleREPL.read_py_command-toggle" onclick="return toggle('SimpleREPL.read_py_command');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#read_py_command">read_py_command</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 241</div><div id="SimpleREPL.read_py_command-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.read_py_command-expanded"><a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> <tt class="py-comment"># Read off a complete Python command.</tt> </tt> 242<a name="L71"></a><tt class="py-lineno"> 71</tt> <tt class="py-line"> <tt class="py-name">more</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt> 243<a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt> 244<a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">more</tt><tt class="py-op">:</tt> </tt> 245<a name="L74"></a><tt class="py-lineno"> 74</tt> <tt class="py-line"> <tt class="py-name">prompt</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps2</tt> </tt> 246<a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt> 247<a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt class="py-name">prompt</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">ps1</tt> </tt> 248<a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method lldb.embedded_interpreter.SimpleREPL.my_raw_input()=lldb.embedded_interpreter.SimpleREPL-class.html#my_raw_input"><a title="lldb.embedded_interpreter.SimpleREPL.my_raw_input" class="py-name" href="#" onclick="return doclink('link-7', 'my_raw_input', 'link-7');">my_raw_input</a></tt><tt class="py-op">(</tt><tt class="py-name">prompt</tt><tt class="py-op">)</tt> </tt> 249<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt class="py-comment"># Can be None if sys.stdin was redefined</tt> </tt> 250<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt class="py-name">encoding</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdin</tt><tt class="py-op">,</tt> <tt class="py-string">"encoding"</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt> 251<a name="L80"></a><tt class="py-lineno"> 80</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">encoding</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">,</tt> <tt class="py-name">unicode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 252<a name="L81"></a><tt class="py-lineno"> 81</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">decode</tt><tt class="py-op">(</tt><tt class="py-name">encoding</tt><tt class="py-op">)</tt> </tt> 253<a name="L82"></a><tt class="py-lineno"> 82</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method lldb.embedded_interpreter.SimpleREPL.process_input()=lldb.embedded_interpreter.SimpleREPL-class.html#process_input"><a title="lldb.embedded_interpreter.SimpleREPL.process_input" class="py-name" href="#" onclick="return doclink('link-8', 'process_input', 'link-8');">process_input</a></tt> <tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt> 254<a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> <tt class="py-name">more</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">push</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt> 255<a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">more</tt><tt class="py-op">:</tt> </tt> 256<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt> 257</div><a name="L86"></a><tt class="py-lineno"> 86</tt> <tt class="py-line"> </tt> 258<a name="SimpleREPL.one_line"></a><div id="SimpleREPL.one_line-def"><a name="L87"></a><tt class="py-lineno"> 87</tt> <a class="py-toggle" href="#" id="SimpleREPL.one_line-toggle" onclick="return toggle('SimpleREPL.one_line');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter.SimpleREPL-class.html#one_line">one_line</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">input</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 259</div><div id="SimpleREPL.one_line-collapsed" style="display:none;" pad="+++" indent="+++++++"></div><div id="SimpleREPL.one_line-expanded"><a name="L88"></a><tt class="py-lineno"> 88</tt> <tt class="py-line"> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="lldb.embedded_interpreter.SimpleREPL.process_input" class="py-name" href="#" onclick="return doclink('link-9', 'process_input', 'link-8');">process_input</a></tt> <tt class="py-op">(</tt><tt class="py-name">input</tt><tt class="py-op">)</tt> </tt> 260<a name="L89"></a><tt class="py-lineno"> 89</tt> <tt class="py-line"> <tt class="py-name">more</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">push</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt> 261<a name="L90"></a><tt class="py-lineno"> 90</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">more</tt><tt class="py-op">:</tt> </tt> 262<a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="lldb.SBCommandReturnObject.write 263lldb.SBStream.write 264lldb.formatters.Logger.FileLogger.write 265lldb.formatters.Logger.Logger.write 266lldb.formatters.Logger.NopLogger.write 267lldb.formatters.Logger.StdoutLogger.write" class="py-name" href="#" onclick="return doclink('link-10', 'write', 'link-2');">write</a></tt> <tt class="py-op">(</tt><tt class="py-string">"Input not a complete line."</tt><tt class="py-op">)</tt> </tt> 268<a name="L92"></a><tt class="py-lineno"> 92</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">resetbuffer</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 269<a name="L93"></a><tt class="py-lineno"> 93</tt> <tt class="py-line"> <tt class="py-name">more</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt> 270</div></div><a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"> </tt> 271<a name="run_python_interpreter"></a><div id="run_python_interpreter-def"><a name="L95"></a><tt class="py-lineno"> 95</tt> <a class="py-toggle" href="#" id="run_python_interpreter-toggle" onclick="return toggle('run_python_interpreter');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter-module.html#run_python_interpreter">run_python_interpreter</a> <tt class="py-op">(</tt><tt class="py-param">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 272</div><div id="run_python_interpreter-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="run_python_interpreter-expanded"><a name="L96"></a><tt class="py-lineno"> 96</tt> <tt class="py-line"> <tt class="py-comment"># Pass in the dictionary, for continuity from one session to the next.</tt> </tt> 273<a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> <tt class="py-name">repl</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name" targets="Class lldb.embedded_interpreter.SimpleREPL=lldb.embedded_interpreter.SimpleREPL-class.html"><a title="lldb.embedded_interpreter.SimpleREPL" class="py-name" href="#" onclick="return doclink('link-11', 'SimpleREPL', 'link-11');">SimpleREPL</a></tt><tt class="py-op">(</tt><tt class="py-string">'>>> '</tt><tt class="py-op">,</tt> <tt class="py-name">dict</tt><tt class="py-op">)</tt> </tt> 274<a name="L98"></a><tt class="py-lineno"> 98</tt> <tt class="py-line"> <tt class="py-name">repl</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method lldb.embedded_interpreter.SimpleREPL.interact()=lldb.embedded_interpreter.SimpleREPL-class.html#interact"><a title="lldb.embedded_interpreter.SimpleREPL.interact" class="py-name" href="#" onclick="return doclink('link-12', 'interact', 'link-12');">interact</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt> 275</div><a name="L99"></a><tt class="py-lineno"> 99</tt> <tt class="py-line"> </tt> 276<a name="run_one_line"></a><div id="run_one_line-def"><a name="L100"></a><tt class="py-lineno">100</tt> <a class="py-toggle" href="#" id="run_one_line-toggle" onclick="return toggle('run_one_line');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.embedded_interpreter-module.html#run_one_line">run_one_line</a> <tt class="py-op">(</tt><tt class="py-param">dict</tt><tt class="py-op">,</tt> <tt class="py-param">input_string</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt> 277</div><div id="run_one_line-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="run_one_line-expanded"><a name="L101"></a><tt class="py-lineno">101</tt> <tt class="py-line"> <tt class="py-name">repl</tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name"><a title="lldb.embedded_interpreter.SimpleREPL" class="py-name" href="#" onclick="return doclink('link-13', 'SimpleREPL', 'link-11');">SimpleREPL</a></tt> <tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-name">dict</tt><tt class="py-op">)</tt> </tt> 278<a name="L102"></a><tt class="py-lineno">102</tt> <tt class="py-line"> <tt class="py-name">repl</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method lldb.embedded_interpreter.SimpleREPL.one_line()=lldb.embedded_interpreter.SimpleREPL-class.html#one_line"><a title="lldb.embedded_interpreter.SimpleREPL.one_line" class="py-name" href="#" onclick="return doclink('link-14', 'one_line', 'link-14');">one_line</a></tt> <tt class="py-op">(</tt><tt class="py-name">input_string</tt><tt class="py-op">)</tt> </tt> 279</div><a name="L103"></a><tt class="py-lineno">103</tt> <tt class="py-line"> </tt><script type="text/javascript"> 280<!-- 281expandto(location.href); 282// --> 283</script> 284</pre> 285<br /> 286<!-- ==================== NAVIGATION BAR ==================== --> 287<table class="navbar" border="0" width="100%" cellpadding="0" 288 bgcolor="#a0c0ff" cellspacing="0"> 289 <tr valign="middle"> 290 291 <!-- Tree link --> 292 <th> <a 293 href="module-tree.html">Trees</a> </th> 294 295 <!-- Index link --> 296 <th> <a 297 href="identifier-index.html">Indices</a> </th> 298 299 <!-- Help link --> 300 <th> <a 301 href="help.html">Help</a> </th> 302 303 <!-- Project homepage --> 304 <th class="navbar" align="right" width="100%"> 305 <table border="0" cellpadding="0" cellspacing="0"> 306 <tr><th class="navbar" align="center" 307 ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th> 308 </tr></table></th> 309 </tr> 310</table> 311<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 312 <tr> 313 <td align="left" class="footer"> 314 Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:38 2013 315 </td> 316 <td align="right" class="footer"> 317 <a target="mainFrame" href="http://epydoc.sourceforge.net" 318 >http://epydoc.sourceforge.net</a> 319 </td> 320 </tr> 321</table> 322 323<script type="text/javascript"> 324 <!-- 325 // Private objects are initially displayed (because if 326 // javascript is turned off then we want them to be 327 // visible); but by default, we want to hide them. So hide 328 // them unless we have a cookie that says to show them. 329 checkCookie(); 330 // --> 331</script> 332</body> 333</html> 334