xref: /llvm-project/lldb/bindings/interface/SBLineEntryDocstrings.i (revision 662548c82683bd8657a3179afee693c4965a3dfd)
1*662548c8SAlex Langford %feature("docstring",
2*662548c8SAlex Langford "Specifies an association with a contiguous range of instructions and
3*662548c8SAlex Langford a source file location.
4*662548c8SAlex Langford 
5*662548c8SAlex Langford :py:class:`SBCompileUnit` contains SBLineEntry(s). For example, ::
6*662548c8SAlex Langford 
7*662548c8SAlex Langford     for lineEntry in compileUnit:
8*662548c8SAlex Langford         print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
9*662548c8SAlex Langford                                     lineEntry.GetLine()))
10*662548c8SAlex Langford         print('start addr: %s' % str(lineEntry.GetStartAddress()))
11*662548c8SAlex Langford         print('end   addr: %s' % str(lineEntry.GetEndAddress()))
12*662548c8SAlex Langford 
13*662548c8SAlex Langford produces: ::
14*662548c8SAlex Langford 
15*662548c8SAlex Langford     line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
16*662548c8SAlex Langford     start addr: a.out[0x100000d98]
17*662548c8SAlex Langford     end   addr: a.out[0x100000da3]
18*662548c8SAlex Langford     line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
19*662548c8SAlex Langford     start addr: a.out[0x100000da3]
20*662548c8SAlex Langford     end   addr: a.out[0x100000da9]
21*662548c8SAlex Langford     line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
22*662548c8SAlex Langford     start addr: a.out[0x100000da9]
23*662548c8SAlex Langford     end   addr: a.out[0x100000db6]
24*662548c8SAlex Langford     line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
25*662548c8SAlex Langford     start addr: a.out[0x100000db6]
26*662548c8SAlex Langford     end   addr: a.out[0x100000dbc]
27*662548c8SAlex Langford     ...
28*662548c8SAlex Langford 
29*662548c8SAlex Langford See also :py:class:`SBCompileUnit` ."
30*662548c8SAlex Langford ) lldb::SBLineEntry;
31