Package lldb :: Class SBLineEntry
[hide private]
[frames] | no frames]

Class SBLineEntry

source code



Specifies an association with a contiguous range of instructions and
a source file location. SBCompileUnit contains SBLineEntry(s). For example,

    for lineEntry in compileUnit:
        print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
                                    lineEntry.GetLine()))
        print('start addr: %s' % str(lineEntry.GetStartAddress()))
        print('end   addr: %s' % str(lineEntry.GetEndAddress()))

produces:

line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
start addr: a.out[0x100000d98]
end   addr: a.out[0x100000da3]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
start addr: a.out[0x100000da3]
end   addr: a.out[0x100000da9]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
start addr: a.out[0x100000da9]
end   addr: a.out[0x100000db6]
line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
start addr: a.out[0x100000db6]
end   addr: a.out[0x100000dbc]
...

See also SBCompileUnit.

Instance Methods [hide private]
 
__repr__(self) source code
 
__init__(self, *args)
__init__(lldb::SBLineEntry self) -> SBLineEntry __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry
source code
 
GetStartAddress(self)
GetStartAddress(SBLineEntry self) -> SBAddress
source code
 
GetEndAddress(self)
GetEndAddress(SBLineEntry self) -> SBAddress
source code
 
IsValid(self)
IsValid(SBLineEntry self) -> bool
source code
 
__nonzero__(self) source code
 
__bool__(self) source code
 
GetFileSpec(self)
GetFileSpec(SBLineEntry self) -> SBFileSpec
source code
 
GetLine(self)
GetLine(SBLineEntry self) -> uint32_t
source code
 
GetColumn(self)
GetColumn(SBLineEntry self) -> uint32_t
source code
 
GetDescription(self, *args)
GetDescription(SBLineEntry self, SBStream description) -> bool
source code
 
SetFileSpec(self, *args)
SetFileSpec(SBLineEntry self, SBFileSpec filespec)
source code
 
SetLine(self, *args)
SetLine(SBLineEntry self, uint32_t line)
source code
 
SetColumn(self, *args)
SetColumn(SBLineEntry self, uint32_t column)
source code
 
__str__(self)
__str__(SBLineEntry self) -> PyObject *
source code
 
__eq__(self, rhs) source code
 
__ne__(self, rhs) source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBLineEntry
  __del__ = lambda self: