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.SBCompileUnit</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 Class SBCompileUnit 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.SBCompileUnit-class.html" 54 target="_top">no frames</a>]</span></td></tr> 55 </table> 56 </td> 57 </tr> 58</table> 59<!-- ==================== CLASS DESCRIPTION ==================== --> 60<h1 class="epydoc">Class SBCompileUnit</h1><p class="nomargin-top"><span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit">source code</a></span></p> 61<center> 62<center> <map id="uml_class_diagram_for_lldb_sbc_4" name="uml_class_diagram_for_lldb_sbc_4"> 63<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__swig_setmethods__" title="lldb.SBCompileUnit.__swig_setmethods__" alt="" coords="17,31,213,49"/> 64<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__swig_getmethods__" title="lldb.SBCompileUnit.__swig_getmethods__" alt="" coords="17,49,213,68"/> 65<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#file" title="A read only property that returns the same result an lldb object that  represents the source file (lldb.SBFileSpec) for the compile unit." alt="" coords="17,68,213,87"/> 66<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#num_line_entries" title="A read only property that returns the number of line entries in a compile  unit as an integer." alt="" coords="17,87,213,105"/> 67<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__setattr__" title="x.__setattr__('name', value) <==> x.name = value" alt="" coords="17,108,213,127"/> 68<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__getattr__" title="lldb.SBCompileUnit.__getattr__" alt="" coords="17,127,213,145"/> 69<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__repr__" title="repr(x)" alt="" coords="17,145,213,164"/> 70<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__iter__" title="lldb.SBCompileUnit.__iter__" alt="" coords="17,164,213,183"/> 71<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__len__" title="lldb.SBCompileUnit.__len__" alt="" coords="17,183,213,201"/> 72<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__init__" title="__init__(lldb::SBCompileUnit self) -> SBCompileUnit  __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> SBCompileUnit" alt="" coords="17,201,213,220"/> 73<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__swig_destroy__" title="delete_SBCompileUnit(SBCompileUnit self)" alt="" coords="17,220,213,239"/> 74<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__del__" title="lldb.SBCompileUnit.__del__" alt="" coords="17,239,213,257"/> 75<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__nonzero__" title="lldb.SBCompileUnit.__nonzero__" alt="" coords="17,257,213,276"/> 76<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#IsValid" title="IsValid(SBCompileUnit self) -> bool" alt="" coords="17,276,213,295"/> 77<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#GetFileSpec" title="GetFileSpec(SBCompileUnit self) -> SBFileSpec" alt="" coords="17,295,213,313"/> 78<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#GetNumLineEntries" title="GetNumLineEntries(SBCompileUnit self) -> uint32_t" alt="" coords="17,313,213,332"/> 79<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#GetLineEntryAtIndex" title="GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> SBLineEntry" alt="" coords="17,332,213,351"/> 80<area shape="rect" id="node10" href="lldb.SBCompileUnit-class.html#__ne__" title="lldb.SBCompileUnit.__ne__" alt="" coords="17,369,213,388"/> 81<area shape="rect" id="node1" href="lldb.SBCompileUnit-class.html" title="Represents a compilation unit, or compiled source file." alt="" coords="5,6,224,394"/> 82</map> 83 <img src="uml_class_diagram_for_lldb_sbc_4.gif" alt='' usemap="#uml_class_diagram_for_lldb_sbc_4" ismap="ismap" class="graph-without-title" /> 84</center> 85</center> 86<hr /> 87<pre class="literalblock"> 88 89Represents a compilation unit, or compiled source file. 90 91SBCompileUnit supports line entry iteration. For example, 92 93 # Now get the SBSymbolContext from this frame. We want everything. :-) 94 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) 95 ... 96 97 compileUnit = context.GetCompileUnit() 98 99 for lineEntry in compileUnit: 100 print 'line entry: %s:%d' % (str(lineEntry.GetFileSpec()), 101 lineEntry.GetLine()) 102 print 'start addr: %s' % str(lineEntry.GetStartAddress()) 103 print 'end addr: %s' % str(lineEntry.GetEndAddress()) 104 105produces: 106 107line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 108start addr: a.out[0x100000d98] 109end addr: a.out[0x100000da3] 110line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 111start addr: a.out[0x100000da3] 112end addr: a.out[0x100000da9] 113line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 114start addr: a.out[0x100000da9] 115end addr: a.out[0x100000db6] 116line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 117start addr: a.out[0x100000db6] 118end addr: a.out[0x100000dbc] 119... 120 121See also SBSymbolContext and SBLineEntry 122 123</pre> 124 125<!-- ==================== INSTANCE METHODS ==================== --> 126<a name="section-InstanceMethods"></a> 127<table class="summary" border="1" cellpadding="3" 128 cellspacing="0" width="100%" bgcolor="white"> 129<tr bgcolor="#70b0f0" class="table-header"> 130 <td colspan="2" class="table-header"> 131 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 132 <tr valign="top"> 133 <td align="left"><span class="table-header">Instance Methods</span></td> 134 <td align="right" valign="top" 135 ><span class="options">[<a href="#section-InstanceMethods" 136 class="privatelink" onclick="toggle_private();" 137 >hide private</a>]</span></td> 138 </tr> 139 </table> 140 </td> 141</tr> 142<tr> 143 <td width="15%" align="right" valign="top" class="summary"> 144 <span class="summary-type"> </span> 145 </td><td class="summary"> 146 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 147 <tr> 148 <td><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#__setattr__" class="summary-sig-name">__setattr__</a>(<span class="summary-sig-arg">self</span>, 149 <span class="summary-sig-arg">name</span>, 150 <span class="summary-sig-arg">value</span>)</span><br /> 151 x.__setattr__('name', value) <==> x.name = value</td> 152 <td align="right" valign="top"> 153 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__setattr__">source code</a></span> 154 155 </td> 156 </tr> 157 </table> 158 159 </td> 160 </tr> 161<tr> 162 <td width="15%" align="right" valign="top" class="summary"> 163 <span class="summary-type"> </span> 164 </td><td class="summary"> 165 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 166 <tr> 167 <td><span class="summary-sig"><a name="__getattr__"></a><span class="summary-sig-name">__getattr__</span>(<span class="summary-sig-arg">self</span>, 168 <span class="summary-sig-arg">name</span>)</span></td> 169 <td align="right" valign="top"> 170 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__getattr__">source code</a></span> 171 172 </td> 173 </tr> 174 </table> 175 176 </td> 177 </tr> 178<tr> 179 <td width="15%" align="right" valign="top" class="summary"> 180 <span class="summary-type"> </span> 181 </td><td class="summary"> 182 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 183 <tr> 184 <td><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">self</span>)</span><br /> 185 repr(x)</td> 186 <td align="right" valign="top"> 187 <span class="codelink"><a href="lldb-pysrc.html#_swig_repr">source code</a></span> 188 189 </td> 190 </tr> 191 </table> 192 193 </td> 194 </tr> 195<tr> 196 <td width="15%" align="right" valign="top" class="summary"> 197 <span class="summary-type"> </span> 198 </td><td class="summary"> 199 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 200 <tr> 201 <td><span class="summary-sig"><a name="__iter__"></a><span class="summary-sig-name">__iter__</span>(<span class="summary-sig-arg">self</span>)</span></td> 202 <td align="right" valign="top"> 203 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__iter__">source code</a></span> 204 205 </td> 206 </tr> 207 </table> 208 209 </td> 210 </tr> 211<tr> 212 <td width="15%" align="right" valign="top" class="summary"> 213 <span class="summary-type"> </span> 214 </td><td class="summary"> 215 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 216 <tr> 217 <td><span class="summary-sig"><a name="__len__"></a><span class="summary-sig-name">__len__</span>(<span class="summary-sig-arg">self</span>)</span></td> 218 <td align="right" valign="top"> 219 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__len__">source code</a></span> 220 221 </td> 222 </tr> 223 </table> 224 225 </td> 226 </tr> 227<tr> 228 <td width="15%" align="right" valign="top" class="summary"> 229 <span class="summary-type"> </span> 230 </td><td class="summary"> 231 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 232 <tr> 233 <td><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 234 <span class="summary-sig-arg">*args</span>)</span><br /> 235 __init__(lldb::SBCompileUnit self) -> SBCompileUnit 236 __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> 237 SBCompileUnit</td> 238 <td align="right" valign="top"> 239 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__init__">source code</a></span> 240 241 </td> 242 </tr> 243 </table> 244 245 </td> 246 </tr> 247<tr> 248 <td width="15%" align="right" valign="top" class="summary"> 249 <span class="summary-type"> </span> 250 </td><td class="summary"> 251 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 252 <tr> 253 <td><span class="summary-sig"><a name="__swig_destroy__"></a><span class="summary-sig-name">__swig_destroy__</span>(<span class="summary-sig-arg">...</span>)</span><br /> 254 delete_SBCompileUnit(SBCompileUnit self)</td> 255 <td align="right" valign="top"> 256 257 258 </td> 259 </tr> 260 </table> 261 262 </td> 263 </tr> 264<tr> 265 <td width="15%" align="right" valign="top" class="summary"> 266 <span class="summary-type"> </span> 267 </td><td class="summary"> 268 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 269 <tr> 270 <td><span class="summary-sig"><a name="__del__"></a><span class="summary-sig-name">__del__</span>(<span class="summary-sig-arg">self</span>)</span></td> 271 <td align="right" valign="top"> 272 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__del__">source code</a></span> 273 274 </td> 275 </tr> 276 </table> 277 278 </td> 279 </tr> 280<tr> 281 <td width="15%" align="right" valign="top" class="summary"> 282 <span class="summary-type"> </span> 283 </td><td class="summary"> 284 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 285 <tr> 286 <td><span class="summary-sig"><a name="__nonzero__"></a><span class="summary-sig-name">__nonzero__</span>(<span class="summary-sig-arg">self</span>)</span></td> 287 <td align="right" valign="top"> 288 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__nonzero__">source code</a></span> 289 290 </td> 291 </tr> 292 </table> 293 294 </td> 295 </tr> 296<tr> 297 <td width="15%" align="right" valign="top" class="summary"> 298 <span class="summary-type"> </span> 299 </td><td class="summary"> 300 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 301 <tr> 302 <td><span class="summary-sig"><a name="IsValid"></a><span class="summary-sig-name">IsValid</span>(<span class="summary-sig-arg">self</span>)</span><br /> 303 IsValid(SBCompileUnit self) -> bool</td> 304 <td align="right" valign="top"> 305 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.IsValid">source code</a></span> 306 307 </td> 308 </tr> 309 </table> 310 311 </td> 312 </tr> 313<tr> 314 <td width="15%" align="right" valign="top" class="summary"> 315 <span class="summary-type"> </span> 316 </td><td class="summary"> 317 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 318 <tr> 319 <td><span class="summary-sig"><a name="GetFileSpec"></a><span class="summary-sig-name">GetFileSpec</span>(<span class="summary-sig-arg">self</span>)</span><br /> 320 GetFileSpec(SBCompileUnit self) -> SBFileSpec</td> 321 <td align="right" valign="top"> 322 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetFileSpec">source code</a></span> 323 324 </td> 325 </tr> 326 </table> 327 328 </td> 329 </tr> 330<tr> 331 <td width="15%" align="right" valign="top" class="summary"> 332 <span class="summary-type"> </span> 333 </td><td class="summary"> 334 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 335 <tr> 336 <td><span class="summary-sig"><a name="GetNumLineEntries"></a><span class="summary-sig-name">GetNumLineEntries</span>(<span class="summary-sig-arg">self</span>)</span><br /> 337 GetNumLineEntries(SBCompileUnit self) -> uint32_t</td> 338 <td align="right" valign="top"> 339 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetNumLineEntries">source code</a></span> 340 341 </td> 342 </tr> 343 </table> 344 345 </td> 346 </tr> 347<tr> 348 <td width="15%" align="right" valign="top" class="summary"> 349 <span class="summary-type"> </span> 350 </td><td class="summary"> 351 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 352 <tr> 353 <td><span class="summary-sig"><a name="GetLineEntryAtIndex"></a><span class="summary-sig-name">GetLineEntryAtIndex</span>(<span class="summary-sig-arg">self</span>, 354 <span class="summary-sig-arg">*args</span>)</span><br /> 355 GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> 356 SBLineEntry</td> 357 <td align="right" valign="top"> 358 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetLineEntryAtIndex">source code</a></span> 359 360 </td> 361 </tr> 362 </table> 363 364 </td> 365 </tr> 366<tr> 367 <td width="15%" align="right" valign="top" class="summary"> 368 <span class="summary-type"> </span> 369 </td><td class="summary"> 370 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 371 <tr> 372 <td><span class="summary-sig"><a name="FindLineEntryIndex"></a><span class="summary-sig-name">FindLineEntryIndex</span>(<span class="summary-sig-arg">self</span>, 373 <span class="summary-sig-arg">*args</span>)</span><br /> 374 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t 375 line, SBFileSpec inline_file_spec) -> uint32_t 376 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t 377 line, SBFileSpec inline_file_spec, bool exact) -> uint32_t</td> 378 <td align="right" valign="top"> 379 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.FindLineEntryIndex">source code</a></span> 380 381 </td> 382 </tr> 383 </table> 384 385 </td> 386 </tr> 387<tr> 388 <td width="15%" align="right" valign="top" class="summary"> 389 <span class="summary-type"> </span> 390 </td><td class="summary"> 391 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 392 <tr> 393 <td><span class="summary-sig"><a name="GetSupportFileAtIndex"></a><span class="summary-sig-name">GetSupportFileAtIndex</span>(<span class="summary-sig-arg">self</span>, 394 <span class="summary-sig-arg">*args</span>)</span><br /> 395 GetSupportFileAtIndex(SBCompileUnit self, uint32_t idx) -> 396 SBFileSpec</td> 397 <td align="right" valign="top"> 398 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetSupportFileAtIndex">source code</a></span> 399 400 </td> 401 </tr> 402 </table> 403 404 </td> 405 </tr> 406<tr> 407 <td width="15%" align="right" valign="top" class="summary"> 408 <span class="summary-type"> </span> 409 </td><td class="summary"> 410 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 411 <tr> 412 <td><span class="summary-sig"><a name="GetNumSupportFiles"></a><span class="summary-sig-name">GetNumSupportFiles</span>(<span class="summary-sig-arg">self</span>)</span><br /> 413 GetNumSupportFiles(SBCompileUnit self) -> uint32_t</td> 414 <td align="right" valign="top"> 415 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetNumSupportFiles">source code</a></span> 416 417 </td> 418 </tr> 419 </table> 420 421 </td> 422 </tr> 423<tr> 424 <td width="15%" align="right" valign="top" class="summary"> 425 <span class="summary-type"> </span> 426 </td><td class="summary"> 427 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 428 <tr> 429 <td><span class="summary-sig"><a name="FindSupportFileIndex"></a><span class="summary-sig-name">FindSupportFileIndex</span>(<span class="summary-sig-arg">self</span>, 430 <span class="summary-sig-arg">*args</span>)</span><br /> 431 FindSupportFileIndex(SBCompileUnit self, uint32_t start_idx, 432 SBFileSpec sb_file, bool full) -> uint32_t</td> 433 <td align="right" valign="top"> 434 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.FindSupportFileIndex">source code</a></span> 435 436 </td> 437 </tr> 438 </table> 439 440 </td> 441 </tr> 442<tr> 443 <td width="15%" align="right" valign="top" class="summary"> 444 <span class="summary-type"> </span> 445 </td><td class="summary"> 446 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 447 <tr> 448 <td><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#GetTypes" class="summary-sig-name">GetTypes</a>(<span class="summary-sig-arg">self</span>, 449 <span class="summary-sig-arg">*args</span>)</span><br /> 450 GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 451GetTypes(SBCompileUnit self) -> SBTypeList</td> 452 <td align="right" valign="top"> 453 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetTypes">source code</a></span> 454 455 </td> 456 </tr> 457 </table> 458 459 </td> 460 </tr> 461<tr> 462 <td width="15%" align="right" valign="top" class="summary"> 463 <span class="summary-type"> </span> 464 </td><td class="summary"> 465 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 466 <tr> 467 <td><span class="summary-sig"><a name="GetDescription"></a><span class="summary-sig-name">GetDescription</span>(<span class="summary-sig-arg">self</span>, 468 <span class="summary-sig-arg">*args</span>)</span><br /> 469 GetDescription(SBCompileUnit self, SBStream description) -> bool</td> 470 <td align="right" valign="top"> 471 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetDescription">source code</a></span> 472 473 </td> 474 </tr> 475 </table> 476 477 </td> 478 </tr> 479<tr> 480 <td width="15%" align="right" valign="top" class="summary"> 481 <span class="summary-type"> </span> 482 </td><td class="summary"> 483 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 484 <tr> 485 <td><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#__str__" class="summary-sig-name">__str__</a>(<span class="summary-sig-arg">self</span>)</span><br /> 486 __str__(SBCompileUnit self) -> PyObject *</td> 487 <td align="right" valign="top"> 488 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__str__">source code</a></span> 489 490 </td> 491 </tr> 492 </table> 493 494 </td> 495 </tr> 496<tr> 497 <td width="15%" align="right" valign="top" class="summary"> 498 <span class="summary-type"> </span> 499 </td><td class="summary"> 500 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 501 <tr> 502 <td><span class="summary-sig"><a name="__eq__"></a><span class="summary-sig-name">__eq__</span>(<span class="summary-sig-arg">self</span>, 503 <span class="summary-sig-arg">rhs</span>)</span></td> 504 <td align="right" valign="top"> 505 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__eq__">source code</a></span> 506 507 </td> 508 </tr> 509 </table> 510 511 </td> 512 </tr> 513<tr> 514 <td width="15%" align="right" valign="top" class="summary"> 515 <span class="summary-type"> </span> 516 </td><td class="summary"> 517 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 518 <tr> 519 <td><span class="summary-sig"><a name="__ne__"></a><span class="summary-sig-name">__ne__</span>(<span class="summary-sig-arg">self</span>, 520 <span class="summary-sig-arg">rhs</span>)</span></td> 521 <td align="right" valign="top"> 522 <span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__ne__">source code</a></span> 523 524 </td> 525 </tr> 526 </table> 527 528 </td> 529 </tr> 530 <tr> 531 <td colspan="2" class="summary"> 532 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 533 <code>__delattr__</code>, 534 <code>__format__</code>, 535 <code>__getattribute__</code>, 536 <code>__hash__</code>, 537 <code>__new__</code>, 538 <code>__reduce__</code>, 539 <code>__reduce_ex__</code>, 540 <code>__sizeof__</code>, 541 <code>__subclasshook__</code> 542 </p> 543 </td> 544 </tr> 545</table> 546<!-- ==================== CLASS VARIABLES ==================== --> 547<a name="section-ClassVariables"></a> 548<table class="summary" border="1" cellpadding="3" 549 cellspacing="0" width="100%" bgcolor="white"> 550<tr bgcolor="#70b0f0" class="table-header"> 551 <td colspan="2" class="table-header"> 552 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 553 <tr valign="top"> 554 <td align="left"><span class="table-header">Class Variables</span></td> 555 <td align="right" valign="top" 556 ><span class="options">[<a href="#section-ClassVariables" 557 class="privatelink" onclick="toggle_private();" 558 >hide private</a>]</span></td> 559 </tr> 560 </table> 561 </td> 562</tr> 563<tr> 564 <td width="15%" align="right" valign="top" class="summary"> 565 <span class="summary-type"> </span> 566 </td><td class="summary"> 567 <a name="__swig_setmethods__"></a><span class="summary-name">__swig_setmethods__</span> = <code title="{}"><code class="variable-group">{</code><code class="variable-group">}</code></code> 568 </td> 569 </tr> 570<tr> 571 <td width="15%" align="right" valign="top" class="summary"> 572 <span class="summary-type"> </span> 573 </td><td class="summary"> 574 <a name="__swig_getmethods__"></a><span class="summary-name">__swig_getmethods__</span> = <code title="{}">{}</code> 575 </td> 576 </tr> 577</table> 578<!-- ==================== PROPERTIES ==================== --> 579<a name="section-Properties"></a> 580<table class="summary" border="1" cellpadding="3" 581 cellspacing="0" width="100%" bgcolor="white"> 582<tr bgcolor="#70b0f0" class="table-header"> 583 <td colspan="2" class="table-header"> 584 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 585 <tr valign="top"> 586 <td align="left"><span class="table-header">Properties</span></td> 587 <td align="right" valign="top" 588 ><span class="options">[<a href="#section-Properties" 589 class="privatelink" onclick="toggle_private();" 590 >hide private</a>]</span></td> 591 </tr> 592 </table> 593 </td> 594</tr> 595<tr> 596 <td width="15%" align="right" valign="top" class="summary"> 597 <span class="summary-type"> </span> 598 </td><td class="summary"> 599 <a href="lldb.SBCompileUnit-class.html#file" class="summary-name">file</a><br /> 600 A read only property that returns the same result an lldb object that 601 represents the source file (lldb.SBFileSpec) for the compile unit. 602 </td> 603 </tr> 604<tr> 605 <td width="15%" align="right" valign="top" class="summary"> 606 <span class="summary-type"> </span> 607 </td><td class="summary"> 608 <a href="lldb.SBCompileUnit-class.html#num_line_entries" class="summary-name">num_line_entries</a><br /> 609 A read only property that returns the number of line entries in a 610 compile unit as an integer. 611 </td> 612 </tr> 613 <tr> 614 <td colspan="2" class="summary"> 615 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 616 <code>__class__</code> 617 </p> 618 </td> 619 </tr> 620</table> 621<!-- ==================== METHOD DETAILS ==================== --> 622<a name="section-MethodDetails"></a> 623<table class="details" border="1" cellpadding="3" 624 cellspacing="0" width="100%" bgcolor="white"> 625<tr bgcolor="#70b0f0" class="table-header"> 626 <td colspan="2" class="table-header"> 627 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 628 <tr valign="top"> 629 <td align="left"><span class="table-header">Method Details</span></td> 630 <td align="right" valign="top" 631 ><span class="options">[<a href="#section-MethodDetails" 632 class="privatelink" onclick="toggle_private();" 633 >hide private</a>]</span></td> 634 </tr> 635 </table> 636 </td> 637</tr> 638</table> 639<a name="__setattr__"></a> 640<div> 641<table class="details" border="1" cellpadding="3" 642 cellspacing="0" width="100%" bgcolor="white"> 643<tr><td> 644 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 645 <tr valign="top"><td> 646 <h3 class="epydoc"><span class="sig"><span class="sig-name">__setattr__</span>(<span class="sig-arg">self</span>, 647 <span class="sig-arg">name</span>, 648 <span class="sig-arg">value</span>)</span> 649 </h3> 650 </td><td align="right" valign="top" 651 ><span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__setattr__">source code</a></span> 652 </td> 653 </tr></table> 654 655 <p>x.__setattr__('name', value) <==> x.name = value</p> 656 <dl class="fields"> 657 <dt>Overrides: 658 object.__setattr__ 659 <dd><em class="note">(inherited documentation)</em></dd> 660 </dt> 661 </dl> 662</td></tr></table> 663</div> 664<a name="__repr__"></a> 665<div> 666<table class="details" border="1" cellpadding="3" 667 cellspacing="0" width="100%" bgcolor="white"> 668<tr><td> 669 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 670 <tr valign="top"><td> 671 <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">self</span>)</span> 672 <br /><em class="fname">(Representation operator)</em> 673 </h3> 674 </td><td align="right" valign="top" 675 ><span class="codelink"><a href="lldb-pysrc.html#_swig_repr">source code</a></span> 676 </td> 677 </tr></table> 678 679 <p>repr(x)</p> 680 <dl class="fields"> 681 <dt>Overrides: 682 object.__repr__ 683 <dd><em class="note">(inherited documentation)</em></dd> 684 </dt> 685 </dl> 686</td></tr></table> 687</div> 688<a name="__init__"></a> 689<div> 690<table class="details" border="1" cellpadding="3" 691 cellspacing="0" width="100%" bgcolor="white"> 692<tr><td> 693 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 694 <tr valign="top"><td> 695 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 696 <span class="sig-arg">*args</span>)</span> 697 <br /><em class="fname">(Constructor)</em> 698 </h3> 699 </td><td align="right" valign="top" 700 ><span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__init__">source code</a></span> 701 </td> 702 </tr></table> 703 704 <p>__init__(lldb::SBCompileUnit self) -> SBCompileUnit 705 __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> 706 SBCompileUnit</p> 707 <dl class="fields"> 708 <dt>Overrides: 709 object.__init__ 710 </dt> 711 </dl> 712</td></tr></table> 713</div> 714<a name="GetTypes"></a> 715<div> 716<table class="details" border="1" cellpadding="3" 717 cellspacing="0" width="100%" bgcolor="white"> 718<tr><td> 719 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 720 <tr valign="top"><td> 721 <h3 class="epydoc"><span class="sig"><span class="sig-name">GetTypes</span>(<span class="sig-arg">self</span>, 722 <span class="sig-arg">*args</span>)</span> 723 </h3> 724 </td><td align="right" valign="top" 725 ><span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.GetTypes">source code</a></span> 726 </td> 727 </tr></table> 728 729 <pre class="literalblock"> 730 731GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 732GetTypes(SBCompileUnit self) -> SBTypeList 733 734Get all types matching type_mask from debug info in this 735compile unit. 736 737@param[in] type_mask 738 A bitfield that consists of one or more bits logically OR'ed 739 together from the lldb::TypeClass enumeration. This allows 740 you to request only structure types, or only class, struct 741 and union types. Passing in lldb::eTypeClassAny will return 742 all types found in the debug information for this compile 743 unit. 744 745@return 746 A list of types in this compile unit that match type_mask 747 748</pre> 749 <dl class="fields"> 750 </dl> 751</td></tr></table> 752</div> 753<a name="__str__"></a> 754<div> 755<table class="details" border="1" cellpadding="3" 756 cellspacing="0" width="100%" bgcolor="white"> 757<tr><td> 758 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 759 <tr valign="top"><td> 760 <h3 class="epydoc"><span class="sig"><span class="sig-name">__str__</span>(<span class="sig-arg">self</span>)</span> 761 <br /><em class="fname">(Informal representation operator)</em> 762 </h3> 763 </td><td align="right" valign="top" 764 ><span class="codelink"><a href="lldb-pysrc.html#SBCompileUnit.__str__">source code</a></span> 765 </td> 766 </tr></table> 767 768 <p>__str__(SBCompileUnit self) -> PyObject *</p> 769 <dl class="fields"> 770 <dt>Overrides: 771 object.__str__ 772 </dt> 773 </dl> 774</td></tr></table> 775</div> 776<br /> 777<!-- ==================== PROPERTY DETAILS ==================== --> 778<a name="section-PropertyDetails"></a> 779<table class="details" border="1" cellpadding="3" 780 cellspacing="0" width="100%" bgcolor="white"> 781<tr bgcolor="#70b0f0" class="table-header"> 782 <td colspan="2" class="table-header"> 783 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 784 <tr valign="top"> 785 <td align="left"><span class="table-header">Property Details</span></td> 786 <td align="right" valign="top" 787 ><span class="options">[<a href="#section-PropertyDetails" 788 class="privatelink" onclick="toggle_private();" 789 >hide private</a>]</span></td> 790 </tr> 791 </table> 792 </td> 793</tr> 794</table> 795<a name="file"></a> 796<div> 797<table class="details" border="1" cellpadding="3" 798 cellspacing="0" width="100%" bgcolor="white"> 799<tr><td> 800 <h3 class="epydoc">file</h3> 801 <p>A read only property that returns the same result an lldb object that 802 represents the source file (lldb.SBFileSpec) for the compile unit.</p> 803 <dl class="fields"> 804 <dt>Get Method:</dt> 805 <dd class="value"><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#GetFileSpec" class="summary-sig-name">GetFileSpec</a>(<span class="summary-sig-arg">self</span>)</span> 806 - GetFileSpec(SBCompileUnit self) -> SBFileSpec 807 </dd> 808 </dl> 809</td></tr></table> 810</div> 811<a name="num_line_entries"></a> 812<div> 813<table class="details" border="1" cellpadding="3" 814 cellspacing="0" width="100%" bgcolor="white"> 815<tr><td> 816 <h3 class="epydoc">num_line_entries</h3> 817 <p>A read only property that returns the number of line entries in a 818 compile unit as an integer.</p> 819 <dl class="fields"> 820 <dt>Get Method:</dt> 821 <dd class="value"><span class="summary-sig"><a href="lldb.SBCompileUnit-class.html#GetNumLineEntries" class="summary-sig-name">GetNumLineEntries</a>(<span class="summary-sig-arg">self</span>)</span> 822 - GetNumLineEntries(SBCompileUnit self) -> uint32_t 823 </dd> 824 </dl> 825</td></tr></table> 826</div> 827<br /> 828<!-- ==================== NAVIGATION BAR ==================== --> 829<table class="navbar" border="0" width="100%" cellpadding="0" 830 bgcolor="#a0c0ff" cellspacing="0"> 831 <tr valign="middle"> 832 833 <!-- Tree link --> 834 <th> <a 835 href="module-tree.html">Trees</a> </th> 836 837 <!-- Index link --> 838 <th> <a 839 href="identifier-index.html">Indices</a> </th> 840 841 <!-- Help link --> 842 <th> <a 843 href="help.html">Help</a> </th> 844 845 <!-- Project homepage --> 846 <th class="navbar" align="right" width="100%"> 847 <table border="0" cellpadding="0" cellspacing="0"> 848 <tr><th class="navbar" align="center" 849 ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th> 850 </tr></table></th> 851 </tr> 852</table> 853<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 854 <tr> 855 <td align="left" class="footer"> 856 Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:34 2013 857 </td> 858 <td align="right" class="footer"> 859 <a target="mainFrame" href="http://epydoc.sourceforge.net" 860 >http://epydoc.sourceforge.net</a> 861 </td> 862 </tr> 863</table> 864 865<script type="text/javascript"> 866 <!-- 867 // Private objects are initially displayed (because if 868 // javascript is turned off then we want them to be 869 // visible); but by default, we want to hide them. So hide 870 // them unless we have a cookie that says to show them. 871 checkCookie(); 872 // --> 873</script> 874</body> 875</html> 876