1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head> 3<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/> 4<meta name="keywords" content="LLDB,C++,doxygen,API,documentation"/> 5<meta name="description" content="C++ source code API documentation for LLDB."/> 6<title>LLVM: SBModule.h Source File</title> 7<link href="doxygen.css" rel="stylesheet" type="text/css"/> 8</head><body> 9<p class="title">LLDB API Documentation</p> 10<!-- Generated by Doxygen 1.8.1.2 --> 11 <div id="navrow1" class="tabs"> 12 <ul class="tablist"> 13 <li><a href="index.html"><span>Main Page</span></a></li> 14 <li><a href="namespaces.html"><span>Namespaces</span></a></li> 15 <li><a href="annotated.html"><span>Classes</span></a></li> 16 <li class="current"><a href="files.html"><span>Files</span></a></li> 17 </ul> 18 </div> 19 <div id="navrow2" class="tabs2"> 20 <ul class="tablist"> 21 <li><a href="files.html"><span>File List</span></a></li> 22 </ul> 23 </div> 24<div id="nav-path" class="navpath"> 25 <ul> 26<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> 27</div> 28</div><!-- top --> 29<div class="header"> 30 <div class="headertitle"> 31<div class="title">SBModule.h</div> </div> 32</div><!--header--> 33<div class="contents"> 34<a href="SBModule_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> <span class="comment">//===-- SBModule.h ----------------------------------------------*- C++ -*-===//</span></div> 35<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div> 36<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// The LLVM Compiler Infrastructure</span></div> 37<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> 38<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div> 39<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div> 40<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div> 41<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div> 42<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div> 43<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifndef LLDB_SBModule_h_</span></div> 44<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor"></span><span class="preprocessor">#define LLDB_SBModule_h_</span></div> 45<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor"></span></div> 46<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="SBDefines_8h.html">lldb/API/SBDefines.h</a>"</span></div> 47<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="SBError_8h.html">lldb/API/SBError.h</a>"</span></div> 48<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="SBSection_8h.html">lldb/API/SBSection.h</a>"</span></div> 49<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="SBSymbolContext_8h.html">lldb/API/SBSymbolContext.h</a>"</span></div> 50<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="SBValueList_8h.html">lldb/API/SBValueList.h</a>"</span></div> 51<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div> 52<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span>lldb {</div> 53<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> 54<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html"> 21</a></span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBModule.html">SBModule</a></div> 55<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div> 56<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">public</span>:</div> 57<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> 58<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="classlldb_1_1SBModule.html#a3cd302c8b7a0b5802d094cb42efa463a">SBModule</a> ();</div> 59<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> 60<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classlldb_1_1SBModule.html#a3cd302c8b7a0b5802d094cb42efa463a">SBModule</a> (<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModule.html">SBModule</a> &rhs);</div> 61<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> 62<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classlldb_1_1SBModule.html#a3cd302c8b7a0b5802d094cb42efa463a">SBModule</a> (<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModuleSpec.html">SBModuleSpec</a> &module_spec);</div> 63<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> 64<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModule.html">SBModule</a> &</div> 65<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classlldb_1_1SBModule.html#ac23a3f777dc494e003877514231894db">operator = </a>(<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModule.html">SBModule</a> &rhs);</div> 66<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> 67<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classlldb_1_1SBModule.html#a3cd302c8b7a0b5802d094cb42efa463a">SBModule</a> (<a class="code" href="classlldb_1_1SBProcess.html">lldb::SBProcess</a> &process, </div> 68<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  lldb::addr_t header_addr);</div> 69<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> 70<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="classlldb_1_1SBModule.html#a32c95a3e1a1bc65a6657c5378d80a7e7">~SBModule</a> ();</div> 71<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> 72<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">bool</span></div> 73<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classlldb_1_1SBModule.html#a6afe3a2e6f8dbd1a1dfadf853133ce4c">IsValid</a> () <span class="keyword">const</span>;</div> 74<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> 75<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">void</span></div> 76<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classlldb_1_1SBModule.html#abe6db9e30e9c27f2dfd78441def6b387">Clear</a>();</div> 77<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> 78<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 79<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> /// Get const accessor for the module file specification.</span></div> 80<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> ///</span></div> 81<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> /// This function returns the file for the module on the host system</span></div> 82<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> /// that is running LLDB. This can differ from the path on the </span></div> 83<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> /// platform since we might be doing remote debugging.</span></div> 84<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"> ///</span></div> 85<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment"> /// @return</span></div> 86<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> /// A const reference to the file specification object.</span></div> 87<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 88<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classlldb_1_1SBFileSpec.html">lldb::SBFileSpec</a></div> 89<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classlldb_1_1SBModule.html#a1719224535b7aa06a25079aa595769d8">GetFileSpec</a> () <span class="keyword">const</span>;</div> 90<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> 91<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 92<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> /// Get accessor for the module platform file specification.</span></div> 93<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> ///</span></div> 94<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> /// Platform file refers to the path of the module as it is known on</span></div> 95<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> /// the remote system on which it is being debugged. For local </span></div> 96<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> /// debugging this is always the same as Module::GetFileSpec(). But</span></div> 97<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> /// remote debugging might mention a file '/usr/lib/liba.dylib'</span></div> 98<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> /// which might be locally downloaded and cached. In this case the</span></div> 99<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> /// platform file could be something like:</span></div> 100<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> /// '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib'</span></div> 101<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> /// The file could also be cached in a local developer kit directory.</span></div> 102<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> ///</span></div> 103<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> /// @return</span></div> 104<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> /// A const reference to the file specification object.</span></div> 105<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 106<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classlldb_1_1SBFileSpec.html">lldb::SBFileSpec</a></div> 107<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classlldb_1_1SBModule.html#a96f8ce0a7f6eefaa206a62c10968a27c">GetPlatformFileSpec</a> () <span class="keyword">const</span>;</div> 108<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> 109<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">bool</span></div> 110<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="classlldb_1_1SBModule.html#aaf2bbda3d2f4c15a97eedb8c75b72044">SetPlatformFileSpec</a> (<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBFileSpec.html">lldb::SBFileSpec</a> &platform_file);</div> 111<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> 112<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  lldb::ByteOrder</div> 113<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classlldb_1_1SBModule.html#a60c578e2ff87a990f8a044a6790fac8f">GetByteOrder</a> ();</div> 114<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div> 115<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  uint32_t</div> 116<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classlldb_1_1SBModule.html#a8fedab4cbb047a7a093b4e0639b1669d">GetAddressByteSize</a>();</div> 117<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div> 118<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *</div> 119<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classlldb_1_1SBModule.html#a4d11ed943bef653387746c2693cc3196">GetTriple</a> ();</div> 120<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> 121<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">const</span> uint8_t *</div> 122<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classlldb_1_1SBModule.html#a1818c229613c9e4838c5e66d677bfe94">GetUUIDBytes</a> () <span class="keyword">const</span>;</div> 123<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div> 124<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *</div> 125<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classlldb_1_1SBModule.html#a72a3d3308bb6afcc04773f1764a58b91">GetUUIDString</a> () <span class="keyword">const</span>;</div> 126<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> 127<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">bool</span></div> 128<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classlldb_1_1SBModule.html#aebc4d8a1eac3dd96a77613c05e6e9a46">operator == </a>(<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModule.html">lldb::SBModule</a> &rhs) <span class="keyword">const</span>;</div> 129<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> 130<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">bool</span></div> 131<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="classlldb_1_1SBModule.html#ae816ccda0369aac8f924ec93425d9bf4">operator != </a>(<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBModule.html">lldb::SBModule</a> &rhs) <span class="keyword">const</span>;</div> 132<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> 133<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classlldb_1_1SBSection.html">lldb::SBSection</a></div> 134<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classlldb_1_1SBModule.html#a499f6bd4ef83218a6334d1306c360cfd">FindSection</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *sect_name);</div> 135<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> 136<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classlldb_1_1SBAddress.html">lldb::SBAddress</a></div> 137<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classlldb_1_1SBModule.html#abea860a09116b56d073ddf508e316e39">ResolveFileAddress</a> (lldb::addr_t vm_addr);</div> 138<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div> 139<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classlldb_1_1SBSymbolContext.html">lldb::SBSymbolContext</a></div> 140<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="classlldb_1_1SBModule.html#ae7c128e77a626db58036d3e2a0fca697">ResolveSymbolContextForAddress</a> (<span class="keyword">const</span> <a class="code" href="classlldb_1_1SBAddress.html">lldb::SBAddress</a>& addr, </div> 141<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  uint32_t resolve_scope);</div> 142<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div> 143<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">bool</span></div> 144<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classlldb_1_1SBModule.html#a9d9f6b9b86e8aabe1181b560b9395f4f">GetDescription</a> (<a class="code" href="classlldb_1_1SBStream.html">lldb::SBStream</a> &description);</div> 145<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> 146<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  uint32_t</div> 147<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classlldb_1_1SBModule.html#abd7e367db82829f60ff3bc6aa2454a7d">GetNumCompileUnits</a>();</div> 148<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> 149<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classlldb_1_1SBCompileUnit.html">lldb::SBCompileUnit</a></div> 150<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classlldb_1_1SBModule.html#ad17944848bbd187237d8e566ce0fe36f">GetCompileUnitAtIndex</a> (uint32_t);</div> 151<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div> 152<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">size_t</span></div> 153<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="classlldb_1_1SBModule.html#acd519910d3a309435fb9f54f2406e50b">GetNumSymbols</a> ();</div> 154<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div> 155<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classlldb_1_1SBSymbol.html">lldb::SBSymbol</a></div> 156<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classlldb_1_1SBModule.html#af31186dd6cd9067a18f1e74fd9319b8e">GetSymbolAtIndex</a> (<span class="keywordtype">size_t</span> idx);</div> 157<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div> 158<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="classlldb_1_1SBSymbol.html">lldb::SBSymbol</a></div> 159<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classlldb_1_1SBModule.html#ae725cb27dc7ff783790dc46f2d3bca77">FindSymbol</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div> 160<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  lldb::SymbolType type = eSymbolTypeAny);</div> 161<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> 162<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classlldb_1_1SBSymbolContextList.html">lldb::SBSymbolContextList</a></div> 163<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="classlldb_1_1SBModule.html#afa5b9413a2b45e1e4b3bf2f6c32285bf">FindSymbols</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name,</div> 164<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  lldb::SymbolType type = eSymbolTypeAny);</div> 165<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> 166<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">size_t</span></div> 167<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="classlldb_1_1SBModule.html#a681d7e90c0d9a4d759bc12da80701453">GetNumSections</a> ();</div> 168<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div> 169<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classlldb_1_1SBSection.html">lldb::SBSection</a></div> 170<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="classlldb_1_1SBModule.html#a5d34f0bbd9ca3762fce49f42b0e9890d">GetSectionAtIndex</a> (<span class="keywordtype">size_t</span> idx);</div> 171<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 172<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> /// Find functions by name.</span></div> 173<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> ///</span></div> 174<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> /// @param[in] name</span></div> 175<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> /// The name of the function we are looking for.</span></div> 176<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"> ///</span></div> 177<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> /// @param[in] name_type_mask</span></div> 178<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> /// A logical OR of one or more FunctionNameType enum bits that</span></div> 179<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> /// indicate what kind of names should be used when doing the</span></div> 180<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> /// lookup. Bits include fully qualified names, base names,</span></div> 181<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> /// C++ methods, or ObjC selectors. </span></div> 182<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> /// See FunctionNameType for more details.</span></div> 183<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"> ///</span></div> 184<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> /// @return</span></div> 185<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> /// A lldb::SBSymbolContextList that gets filled in with all of </span></div> 186<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> /// the symbol contexts for all the matches.</span></div> 187<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 188<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classlldb_1_1SBSymbolContextList.html">lldb::SBSymbolContextList</a></div> 189<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classlldb_1_1SBModule.html#a0e65725d729843a9c253ccacad3b11b7">FindFunctions</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *name, </div> 190<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  uint32_t name_type_mask = lldb::eFunctionNameTypeAny);</div> 191<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div> 192<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 193<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> /// Find global and static variables by name.</span></div> 194<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> ///</span></div> 195<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> /// @param[in] target</span></div> 196<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> /// A valid SBTarget instance representing the debuggee.</span></div> 197<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> ///</span></div> 198<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"> /// @param[in] name</span></div> 199<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> /// The name of the global or static variable we are looking</span></div> 200<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> /// for.</span></div> 201<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"> ///</span></div> 202<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment"> /// @param[in] max_matches</span></div> 203<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> /// Allow the number of matches to be limited to \a max_matches.</span></div> 204<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment"> ///</span></div> 205<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"> /// @return</span></div> 206<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"> /// A list of matched variables in an SBValueList.</span></div> 207<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 208<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="classlldb_1_1SBValueList.html">lldb::SBValueList</a></div> 209<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classlldb_1_1SBModule.html#ac93d93e4e316cdeb0f8bda568eb103ee">FindGlobalVariables</a> (<a class="code" href="classlldb_1_1SBTarget.html">lldb::SBTarget</a> &target, </div> 210<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *name, </div> 211<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  uint32_t max_matches);</div> 212<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div> 213<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 214<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> /// Find the first global (or static) variable by name.</span></div> 215<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> ///</span></div> 216<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"> /// @param[in] target</span></div> 217<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"> /// A valid SBTarget instance representing the debuggee.</span></div> 218<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"> ///</span></div> 219<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> /// @param[in] name</span></div> 220<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> /// The name of the global or static variable we are looking</span></div> 221<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> /// for.</span></div> 222<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment"> ///</span></div> 223<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment"> /// @return</span></div> 224<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment"> /// An SBValue that gets filled in with the found variable (if any).</span></div> 225<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 226<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="classlldb_1_1SBValue.html">lldb::SBValue</a></div> 227<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="classlldb_1_1SBModule.html#af7a272cdbd2fae04a1c10626f3e88a37">FindFirstGlobalVariable</a> (<a class="code" href="classlldb_1_1SBTarget.html">lldb::SBTarget</a> &target, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div> 228<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div> 229<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="classlldb_1_1SBType.html">lldb::SBType</a></div> 230<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classlldb_1_1SBModule.html#a1e4f9f33ff8de859574a753b770d525b">FindFirstType</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> 231<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div> 232<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="classlldb_1_1SBTypeList.html">lldb::SBTypeList</a></div> 233<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classlldb_1_1SBModule.html#a2a97704d30a55978e5205def54cfb345">FindTypes</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* type);</div> 234<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div> 235<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="classlldb_1_1SBType.html">lldb::SBType</a></div> 236<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classlldb_1_1SBModule.html#af100edee4dea77ce828169c30ed84124">GetBasicType</a>(lldb::BasicType type);</div> 237<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div> 238<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 239<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> /// Get all types matching \a type_mask from debug info in this</span></div> 240<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> /// module.</span></div> 241<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"> ///</span></div> 242<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment"> /// @param[in] type_mask</span></div> 243<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> /// A bitfield that consists of one or more bits logically OR'ed</span></div> 244<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> /// together from the lldb::TypeClass enumeration. This allows</span></div> 245<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> /// you to request only structure types, or only class, struct</span></div> 246<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> /// and union types. Passing in lldb::eTypeClassAny will return</span></div> 247<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> /// all types found in the debug information for this module.</span></div> 248<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> ///</span></div> 249<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> /// @return</span></div> 250<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> /// A list of types in this module that match \a type_mask</span></div> 251<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 252<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="classlldb_1_1SBTypeList.html">lldb::SBTypeList</a></div> 253<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="classlldb_1_1SBModule.html#a9ae98e0ba4724016288ec8b522f78cca">GetTypes</a> (uint32_t type_mask = lldb::eTypeClassAny);</div> 254<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div> 255<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">//------------------------------------------------------------------</span><span class="comment"></span></div> 256<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment"> /// Get the module version numbers.</span></div> 257<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"> ///</span></div> 258<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment"> /// Many object files have a set of version numbers that describe</span></div> 259<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> /// the version of the executable or shared library. Typically there</span></div> 260<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"> /// are major, minor and build, but there may be more. This function</span></div> 261<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment"> /// will extract the versions from object files if they are available.</span></div> 262<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment"> ///</span></div> 263<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> /// If \a versions is NULL, or if \a num_versions is 0, the return</span></div> 264<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> /// value will indicate how many version numbers are available in</span></div> 265<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> /// this object file. Then a subsequent call can be made to this </span></div> 266<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> /// function with a value of \a versions and \a num_versions that</span></div> 267<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> /// has enough storage to store some or all version numbers.</span></div> 268<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> ///</span></div> 269<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> /// @param[out] versions</span></div> 270<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"> /// A pointer to an array of uint32_t types that is \a num_versions</span></div> 271<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment"> /// long. If this value is NULL, the return value will indicate</span></div> 272<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="comment"> /// how many version numbers are required for a subsequent call</span></div> 273<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"> /// to this function so that all versions can be retrieved. If</span></div> 274<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> /// the value is non-NULL, then at most \a num_versions of the</span></div> 275<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> /// existing versions numbers will be filled into \a versions.</span></div> 276<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> /// If there is no version information available, \a versions</span></div> 277<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> /// will be filled with \a num_versions UINT32_MAX values</span></div> 278<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> /// and zero will be returned.</span></div> 279<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> ///</span></div> 280<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> /// @param[in] num_versions</span></div> 281<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> /// The maximum number of entries to fill into \a versions. If</span></div> 282<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> /// this value is zero, then the return value will indicate</span></div> 283<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> /// how many version numbers there are in total so another call</span></div> 284<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="comment"> /// to this function can be make with adequate storage in</span></div> 285<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment"> /// \a versions to get all of the version numbers. If \a</span></div> 286<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment"> /// num_versions is less than the actual number of version </span></div> 287<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"> /// numbers in this object file, only \a num_versions will be</span></div> 288<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> /// filled into \a versions (if \a versions is non-NULL).</span></div> 289<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> ///</span></div> 290<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> /// @return</span></div> 291<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"> /// This function always returns the number of version numbers</span></div> 292<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment"> /// that this object file has regardless of the number of</span></div> 293<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment"> /// version numbers that were copied into \a versions. </span></div> 294<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"></span> <span class="comment">//------------------------------------------------------------------</span></div> 295<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  uint32_t</div> 296<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="classlldb_1_1SBModule.html#a7ed0d05ad76702154ab99295bebee2db">GetVersion</a> (uint32_t *versions, </div> 297<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  uint32_t num_versions);</div> 298<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div> 299<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keyword">private</span>:</div> 300<div class="line"><a name="l00267"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html#a6e49cb4c7b4df1a9e1231d58a4952607"> 267</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBAddress.html">SBAddress</a>;</div> 301<div class="line"><a name="l00268"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html#abf05358ec2c89fa95b69c85ed46492c9"> 268</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBFrame.html">SBFrame</a>;</div> 302<div class="line"><a name="l00269"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html#ac680b582e5ce19cad1574d1f5793c68b"> 269</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBSection.html">SBSection</a>;</div> 303<div class="line"><a name="l00270"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html#a61223b184d8edf3f301c71ce68df8af5"> 270</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBSymbolContext.html">SBSymbolContext</a>;</div> 304<div class="line"><a name="l00271"></a><span class="lineno"><a class="code" href="classlldb_1_1SBModule.html#a593230acf95f9720217b7fb17681efca"> 271</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classlldb_1_1SBTarget.html">SBTarget</a>;</div> 305<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div> 306<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">explicit</span> <a class="code" href="classlldb_1_1SBModule.html#a3cd302c8b7a0b5802d094cb42efa463a">SBModule</a> (<span class="keyword">const</span> lldb::ModuleSP& module_sp);</div> 307<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div> 308<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  ModuleSP</div> 309<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  GetSP () <span class="keyword">const</span>;</div> 310<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  </div> 311<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordtype">void</span></div> 312<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  SetSP (<span class="keyword">const</span> ModuleSP &module_sp);</div> 313<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div> 314<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  lldb::ModuleSP m_opaque_sp;</div> 315<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> };</div> 316<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div> 317<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div> 318<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> } <span class="comment">// namespace lldb</span></div> 319<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div> 320<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor">#endif // LLDB_SBModule_h_</span></div> 321</div><!-- fragment --></div><!-- contents --> 322<hr> 323<p class="footer"> 324Generated on Fri Jul 19 2013 13:25:55 for <a href="http://lldb.llvm.org/">LLVM</a> by 325<a href="http://www.doxygen.org"><img src="doxygen.png" alt="Doxygen" 326align="middle" border="0"/>1.8.1.2</a><br> 327Copyright © 2003-2013 University of Illinois at Urbana-Champaign. 328All Rights Reserved.</p> 329<hr> 330<!--#include virtual="/attrib.incl" --> 331</body> 332</html> 333