Add docstrings and cross refs to SBCompileUnit and SBLineEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136230 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBCompileUnit.i b/scripts/Python/interface/SBCompileUnit.i
index 8a2e885..a9294ec 100644
--- a/scripts/Python/interface/SBCompileUnit.i
+++ b/scripts/Python/interface/SBCompileUnit.i
@@ -14,6 +14,12 @@
SBCompileUnit supports line entry iteration. For example,
+ # Now get the SBSymbolContext from this frame. We want everything. :-)
+ context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
+ ...
+
+ compileUnit = context.GetCompileUnit()
+
for lineEntry in compileUnit:
print 'line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
lineEntry.GetLine())
@@ -35,7 +41,9 @@
start addr: a.out[0x100000db6]
end addr: a.out[0x100000dbc]
...
-") SBCompileUnit;
+
+See also SBSymbolContext and SBLineEntry"
+) SBCompileUnit;
class SBCompileUnit
{
public: