llvm-project/lldb/www/cpp_reference/html/SBCommandInterpreter_8h_sou...

239 lines
34 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="keywords" content="LLDB,C++,doxygen,API,documentation"/>
<meta name="description" content="C++ source code API documentation for LLDB."/>
<title>LLVM: SBCommandInterpreter.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head><body>
<p class="title">LLDB API Documentation</p>
<!-- Generated by Doxygen 1.8.1.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_217b186c19a2bb8bc0ee0f71fb72d4e8.html">tools</a></li><li class="navelem"><a class="el" href="dir_fa64c3fa8a988674a1a867b97ca9a790.html">lldb</a></li><li class="navelem"><a class="el" href="dir_9d4b8469db156c557ab1d649b027ec2e.html">include</a></li><li class="navelem"><a class="el" href="dir_c02e3ff158c3064d7b78c6aa6fc411e6.html">lldb</a></li><li class="navelem"><a class="el" href="dir_36ad4ea5df2b352cce0512435d34c8a4.html">API</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SBCommandInterpreter.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="SBCommandInterpreter_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//===-- SBCommandInterpreter.h ----------------------------------*- C++ -*-===//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// The LLVM Compiler Infrastructure</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// License. See LICENSE.TXT for details.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">//===----------------------------------------------------------------------===//</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#ifndef LLDB_SBCommandInterpreter_h_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LLDB_SBCommandInterpreter_h_</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="SBDefines_8h.html">lldb/API/SBDefines.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="SBDebugger_8h.html">lldb/API/SBDebugger.h</a>&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">namespace </span>lldb {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlldb_1_1SBCommandInterpreter.html">SBCommandInterpreter</a></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">enum</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; {</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a5f9909fdaf92ceca0528bfa8cbf5544c"> 23</a></span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a5f9909fdaf92ceca0528bfa8cbf5544c">eBroadcastBitThreadShouldExit</a> = (1 &lt;&lt; 0),</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a792a1af7238786e2ef486ffadef56f35"> 24</a></span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a792a1af7238786e2ef486ffadef56f35">eBroadcastBitResetPrompt</a> = (1 &lt;&lt; 1),</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a5e8906bc5d5af942a17b405934cf831d"> 25</a></span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785a5e8906bc5d5af942a17b405934cf831d">eBroadcastBitQuitCommandReceived</a> = (1 &lt;&lt; 2), <span class="comment">// User entered quit </span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785ab5807ca22cd5bd5d8d476adbd7fcb103"> 26</a></span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785ab5807ca22cd5bd5d8d476adbd7fcb103">eBroadcastBitAsynchronousOutputData</a> = (1 &lt;&lt; 3),</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785aa96225de3441b28b3498249290dd2d7d"> 27</a></span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a89a95e759e7abf76f1612c100d2aa785aa96225de3441b28b3498249290dd2d7d">eBroadcastBitAsynchronousErrorData</a> = (1 &lt;&lt; 4)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; };</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a7d5429fba095b85380326df5b3d358ad">SBCommandInterpreter</a> (<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBCommandInterpreter.html">lldb::SBCommandInterpreter</a> &amp;rhs);</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">const</span> <a class="code" href="classlldb_1_1SBCommandInterpreter.html">lldb::SBCommandInterpreter</a> &amp;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a396532fa27edb54e891c7ca12015e624">operator = </a>(<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBCommandInterpreter.html">lldb::SBCommandInterpreter</a> &amp;rhs);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a3740745f770eb958aa0cef2c4ced8cd8">~SBCommandInterpreter</a> ();</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a06d503ca8d3b2d880b1bec0d8d258fe8">GetArgumentTypeAsCString</a> (<span class="keyword">const</span> lldb::CommandArgumentType arg_type);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a51133113ce155e21225d1c16e2762f65">GetArgumentDescriptionAsCString</a> (<span class="keyword">const</span> lldb::CommandArgumentType arg_type);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a2c2968348c19c305e8587a3ec65f0dc1">IsValid</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#add84a5360d1ebfc2ec36b529ca5aefa2">CommandExists</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *cmd);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a8aaf7dc3b2d2fe20fcd73ee42773e930">AliasExists</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *cmd);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="classlldb_1_1SBBroadcaster.html">lldb::SBBroadcaster</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a322bfa5ecb846dab306ef9b7952857b5">GetBroadcaster</a> ();</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a5bfbefc4a11774172288ceff6b4fea4e">GetBroadcasterClass</a> ();</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#affc473a15f23ef7b092e8ec192fd6cf7">HasCommands</a> ();</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#ae7ee9d66c5dac5c06fea789dd92ac364">HasAliases</a> ();</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#afe8ff935fa208ae8e7653b8bb5456b92">HasAliasOptions</a> ();</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="classlldb_1_1SBProcess.html">lldb::SBProcess</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a0f5f9ac83c80ebe3246e43e7c452de05">GetProcess</a> ();</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classlldb_1_1SBDebugger.html">lldb::SBDebugger</a></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#aa485675129b1906888676abf32eee644">GetDebugger</a> ();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">lldb::SBCommand</a></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#ae398e51e9f2eface3576627c610b8e77">AddMultiwordCommand</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* help);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">lldb::SBCommand</a></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#ac7cf409565d150cd3387640b959524d8">AddCommand</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <a class="code" href="classlldb_1_1SBCommandPluginInterface.html">lldb::SBCommandPluginInterface</a> *impl, <span class="keyword">const</span> <span class="keywordtype">char</span>* help);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#aff338d9f2916a051191e9ea77e7d275f">SourceInitFileInHomeDirectory</a> (<a class="code" href="classlldb_1_1SBCommandReturnObject.html">lldb::SBCommandReturnObject</a> &amp;result);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a15abc317d5c97b53ff0dbce835ca6f7b">SourceInitFileInCurrentWorkingDirectory</a> (<a class="code" href="classlldb_1_1SBCommandReturnObject.html">lldb::SBCommandReturnObject</a> &amp;result);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; lldb::ReturnStatus</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#aebc28318fb396861c263a6e7eb5ddcaf">HandleCommand</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *command_line, <a class="code" href="classlldb_1_1SBCommandReturnObject.html">lldb::SBCommandReturnObject</a> &amp;result, <span class="keywordtype">bool</span> add_to_history = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">// The pointer based interface is not useful in SWIG, since the cursor &amp; last_char arguments are string pointers INTO current_line</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="comment">// and you can&#39;t do that in a scripting language interface in general...</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// In either case, the way this works is that the you give it a line and cursor position in the line. The function</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">// will return the number of completions. The matches list will contain number_of_completions + 1 elements. The first</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// element is the common substring after the cursor position for all the matches. The rest of the elements are the</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="comment">// matches. The first element is useful if you are emulating the common shell behavior where the tab completes</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// to the string that is common among all the matches, then you should first check if the first element is non-empty,</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="comment">// and if so just insert it and move the cursor to the end of the insertion. The next tab will return an empty</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="comment">// common substring, and a list of choices (if any), at which point you should display the choices and let the user</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">// type further to disambiguate.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a9d2beb3bf6665021b2cee4f645ccd427">HandleCompletion</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *current_line,</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *cursor,</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *last_char,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordtype">int</span> match_start_point,</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">int</span> max_return_elements,</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="classlldb_1_1SBStringList.html">lldb::SBStringList</a> &amp;matches);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a9d2beb3bf6665021b2cee4f645ccd427">HandleCompletion</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *current_line,</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; uint32_t cursor_pos,</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">int</span> match_start_point,</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordtype">int</span> max_return_elements,</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="classlldb_1_1SBStringList.html">lldb::SBStringList</a> &amp;matches);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// Catch commands before they execute by registering a callback that will</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">// get called when the command gets executed. This allows GUI or command</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">// line interfaces to intercept a command and stop it from happening</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#af3fe4e5b0880d425d559bfe5dd1e14c3">SetCommandOverrideCallback</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *command_name,</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; lldb::CommandOverrideCallback callback,</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">void</span> *baton);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a7d5429fba095b85380326df5b3d358ad">SBCommandInterpreter</a> (lldb_private::CommandInterpreter *interpreter_ptr = NULL); <span class="comment">// Access using SBDebugger::GetCommandInterpreter();</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; lldb_private::CommandInterpreter &amp;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a415c3d9e508f36fa616b34e07449de7b">ref</a> ();</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; lldb_private::CommandInterpreter *</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">get</span> ();</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#af54a6247f4a99427d7d90b8771ef3585">reset</a> (lldb_private::CommandInterpreter *);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandInterpreter.html#a57b27e10004af3d21e9f5a904faf2988"> 136</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBDebugger.html">SBDebugger</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; InitializeSWIG ();</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; lldb_private::CommandInterpreter *m_opaque_ptr;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;};</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandPluginInterface.html"> 144</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlldb_1_1SBCommandPluginInterface.html">SBCommandPluginInterface</a></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;{</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandPluginInterface.html#a683be36b0e55cbfc980059e14b1fde84"> 148</a></span>&#160; DoExecute (<a class="code" href="classlldb_1_1SBDebugger.html">lldb::SBDebugger</a> debugger,</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">char</span>** command,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="classlldb_1_1SBCommandReturnObject.html">lldb::SBCommandReturnObject</a> &amp;result)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; {</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keyword">virtual</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommandPluginInterface.html#ab0c33994ee68e4c2d7fe799057ef5398"> 156</a></span>&#160; ~<a class="code" href="classlldb_1_1SBCommandPluginInterface.html">SBCommandPluginInterface</a> ()</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; {}</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;};</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommand.html"> 160</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlldb_1_1SBCommand.html">SBCommand</a></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;{</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">SBCommand</a> ();</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#a2c2968348c19c305e8587a3ec65f0dc1">IsValid</a> ();</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; GetName ();</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>*</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; GetHelp ();</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">lldb::SBCommand</a></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#ae398e51e9f2eface3576627c610b8e77">AddMultiwordCommand</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* help = NULL);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">lldb::SBCommand</a></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="code" href="classlldb_1_1SBCommandInterpreter.html#ac7cf409565d150cd3387640b959524d8">AddCommand</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <a class="code" href="classlldb_1_1SBCommandPluginInterface.html">lldb::SBCommandPluginInterface</a>* impl, <span class="keyword">const</span> <span class="keywordtype">char</span>* help = NULL);</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommand.html#a57b27e10004af3d21e9f5a904faf2988"> 183</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBDebugger.html">SBDebugger</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="classlldb_1_1SBCommand.html#af3fb6efd0d4f3b3bb7b87db062eb48c9"> 184</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBCommandInterpreter.html">SBCommandInterpreter</a>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="code" href="classlldb_1_1SBCommand.html">SBCommand</a> (lldb::CommandObjectSP cmd_sp);</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; lldb::CommandObjectSP m_opaque_sp;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;};</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;} <span class="comment">// namespace lldb</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;<span class="preprocessor">#endif // LLDB_SBCommandInterpreter_h_</span></div>
</div><!-- fragment --></div><!-- contents -->
<hr>
<p class="footer">
Generated on Fri Jul 19 2013 13:25:55 for <a href="http://lldb.llvm.org/">LLVM</a> by
<a href="http://www.doxygen.org"><img src="doxygen.png" alt="Doxygen"
align="middle" border="0"/>1.8.1.2</a><br>
Copyright &copy; 2003-2013 University of Illinois at Urbana-Champaign.
All Rights Reserved.</p>
<hr>
<!--#include virtual="/attrib.incl" -->
</body>
</html>