diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-27 18:28:07 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-27 18:28:07 +0000 |
commit | 07c10246b521cf8a8ee47932368aa57021f4f452 (patch) | |
tree | 44f7d94f2319ae80e518a02c453d6c27b131f319 /lldb/scripts/Python/interface/SBCompileUnit.i | |
parent | 66ee037863ea3b03351092ce941d35920a7cd6af (diff) | |
download | bcm5719-llvm-07c10246b521cf8a8ee47932368aa57021f4f452.tar.gz bcm5719-llvm-07c10246b521cf8a8ee47932368aa57021f4f452.zip |
Add docstrings and cross refs to SBCompileUnit and SBLineEntry.
llvm-svn: 136230
Diffstat (limited to 'lldb/scripts/Python/interface/SBCompileUnit.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBCompileUnit.i | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBCompileUnit.i b/lldb/scripts/Python/interface/SBCompileUnit.i index 8a2e88569e4..a9294ec5d97 100644 --- a/lldb/scripts/Python/interface/SBCompileUnit.i +++ b/lldb/scripts/Python/interface/SBCompileUnit.i @@ -14,6 +14,12 @@ namespace lldb { 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 @@ line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:2 start addr: a.out[0x100000db6] end addr: a.out[0x100000dbc] ... -") SBCompileUnit; + +See also SBSymbolContext and SBLineEntry" +) SBCompileUnit; class SBCompileUnit { public: |