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

# Class SBSection

source code

    Represents an executable image section.

    SBSection supports iteration through its subsection, represented as SBSection
    as well.  For example,

        for sec in exe_module:
            if sec.GetName() == '__TEXT':
                print sec
                break
        print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections()
        for subsec in sec:
            print INDENT + repr(subsec)

    produces:

    [0x0000000100000000-0x0000000100002000) a.out.__TEXT
        Number of subsections: 6
        [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
        [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
        [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
        [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
        [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
        [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame

    See also SBModule.

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
__iter__(self) | source code
__len__(self) | source code
__init__(self, *args) __init__(lldb::SBSection self) -> SBSection __init__(lldb::SBSection self, SBSection rhs) -> SBSection | source code
__swig_destroy__(...) delete_SBSection(SBSection self) |
__del__(self) | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBSection self) -> bool | source code
GetName(self) GetName(SBSection self) -> str const * | source code
GetParent(self) GetParent(SBSection self) -> SBSection | source code
FindSubSection(self, *args) FindSubSection(SBSection self, str const * sect_name) -> SBSection | source code
GetNumSubSections(self) GetNumSubSections(SBSection self) -> size_t | source code
GetSubSectionAtIndex(self, *args) GetSubSectionAtIndex(SBSection self, size_t idx) -> SBSection | source code
GetFileAddress(self) GetFileAddress(SBSection self) -> lldb::addr_t | source code
GetLoadAddress(self, *args) GetLoadAddress(SBSection self, SBTarget target) -> lldb::addr_t | source code
GetByteSize(self) GetByteSize(SBSection self) -> lldb::addr_t | source code
GetFileOffset(self) GetFileOffset(SBSection self) -> uint64_t | source code
GetFileByteSize(self) GetFileByteSize(SBSection self) -> uint64_t | source code
GetSectionData(self, *args) GetSectionData(SBSection self) -> SBData GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData | source code
GetSectionType(self) GetSectionType(SBSection self) -> lldb::SectionType | source code
GetDescription(self, *args) GetDescription(SBSection self, SBStream description) -> bool | source code
get_addr(self) | source code
__str__(self) __str__(SBSection 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 section.
| data A read only property that returns an lldb object that represents the bytes for this section (lldb.SBData) for this section.
| file_addr A read only property that returns an integer that represents the starting "file" address for this section, or the address of the section in the object file in which it is defined.
| file_offset A read only property that returns the file offset in bytes of this section as an integer.
| file_size A read only property that returns the file size in bytes of this section as an integer.
| name A read only property that returns the name of this section as a string.
| size A read only property that returns the size in bytes of this section as an integer.
| type A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSectionType") that represents the type of this section (code, data, etc.).
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::SBSection self) -> SBSection __init__(lldb::SBSection self, SBSection rhs) -> SBSection Overrides: object.__init__

### __str__(self) (Informal representation operator) | source code
__str__(SBSection 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 section. Get Method: get_addr(self)

### data A read only property that returns an lldb object that represents the bytes for this section (lldb.SBData) for this section. Get Method: GetSectionData(self, *args) - GetSectionData(SBSection self) -> SBData GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData

### file_addr A read only property that returns an integer that represents the starting "file" address for this section, or the address of the section in the object file in which it is defined. Get Method: GetFileAddress(self) - GetFileAddress(SBSection self) -> lldb::addr_t

### file_offset A read only property that returns the file offset in bytes of this section as an integer. Get Method: GetFileOffset(self) - GetFileOffset(SBSection self) -> uint64_t

### file_size A read only property that returns the file size in bytes of this section as an integer. Get Method: GetFileByteSize(self) - GetFileByteSize(SBSection self) -> uint64_t

### name A read only property that returns the name of this section as a string. Get Method: GetName(self) - GetName(SBSection self) -> str const *

### size A read only property that returns the size in bytes of this section as an integer. Get Method: GetByteSize(self) - GetByteSize(SBSection self) -> lldb::addr_t

### type A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSectionType") that represents the type of this section (code, data, etc.). Get Method: GetSectionType(self) - GetSectionType(SBSection self) -> lldb::SectionType