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]
 
__repr__(self) source code
 
__init__(self, *args)
__init__(lldb::SBSection self) -> SBSection __init__(lldb::SBSection self, SBSection rhs) -> SBSection
source code
 
IsValid(self)
IsValid(SBSection self) -> bool
source code
 
__nonzero__(self) source code
 
__bool__(self) source code
 
GetName(self)
GetName(SBSection self) -> char const *
source code
 
GetParent(self)
GetParent(SBSection self) -> SBSection
source code
 
FindSubSection(self, *args)
FindSubSection(SBSection self, char 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
 
GetPermissions(self)
GetPermissions(SBSection self) -> uint32_t
source code
 
GetTargetByteSize(self)
GetTargetByteSize(SBSection self) -> uint32_t
source code
 
GetDescription(self, *args)
GetDescription(SBSection self, SBStream description) -> bool
source code
 
__iter__(self)
Iterate over all subsections in a lldb.SBSection object.
source code
 
__len__(self)
Return the number of subsections in a lldb.SBSection object.
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
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBSection
  __del__ = lambda self:
Method Details [hide private]

GetTargetByteSize(self)

source code 

GetTargetByteSize(SBSection self) -> uint32_t

Return the size of a target's byte represented by this section
in numbers of host bytes. Note that certain architectures have
varying minimum addressable unit (i.e. byte) size for their
CODE or DATA buses.

@return
    The number of host (8-bit) bytes needed to hold a target byte