lldb.SBLineEntry

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]
__setattr__(self, name, value) x.__setattr__('name', value) <==> x.name = value | source code
__getattr__(self, name) | source code
__repr__(self) repr(x) | source code
__init__(self, *args) __init__(lldb::SBLineEntry self) -> SBLineEntry __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry | source code
__swig_destroy__(...) delete_SBLineEntry(SBLineEntry self) |
__del__(self) | source code
GetStartAddress(self) GetStartAddress(SBLineEntry self) -> SBAddress | source code
GetEndAddress(self) GetEndAddress(SBLineEntry self) -> SBAddress | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBLineEntry self) -> bool | 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
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__subclasshook__`

Class Variables | [hide private]
| __swig_setmethods__ = ``{``}``
| __swig_getmethods__ = `{}`

Properties | [hide private]
| addr A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry.
| column A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.
| end_addr A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry.
| file A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.
| ling A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __setattr__(self, name, value) | source code
x.__setattr__('name', value) <==> x.name = value Overrides: object.__setattr__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __init__(self, *args) (Constructor) | source code
__init__(lldb::SBLineEntry self) -> SBLineEntry __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry Overrides: object.__init__

### __str__(self) (Informal representation operator) | source code
__str__(SBLineEntry self) -> PyObject * Overrides: object.__str__

Property Details | [hide private]

### addr A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry. Get Method: GetStartAddress(self) - GetStartAddress(SBLineEntry self) -> SBAddress

### column A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available. Get Method: GetColumn(self) - GetColumn(SBLineEntry self) -> uint32_t

### end_addr A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry. Get Method: GetEndAddress(self) - GetEndAddress(SBLineEntry self) -> SBAddress

### file A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry. Get Method: GetFileSpec(self) - GetFileSpec(SBLineEntry self) -> SBFileSpec

### ling A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available. Get Method: GetLine(self) - GetLine(SBLineEntry self) -> uint32_t