brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 9c9cb81 Raw
38 lines · plain
1%feature("docstring",2"Represents an executable image section.3 4SBSection supports iteration through its subsection, represented as SBSection5as well.  For example, ::6 7    for sec in exe_module.section_iter():8        if sec.GetName() == '__TEXT':9            print sec10            break11    print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections()12    for subsec in sec:13        print INDENT + repr(subsec)14 15produces: ::16 17  [0x0000000100000000-0x0000000100002000) a.out.__TEXT18      Number of subsections: 619      [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text20      [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs21      [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper22      [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring23      [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info24      [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame25 26See also :py:class:`SBModule` ."27) lldb::SBSection;28 29%feature("docstring", "30    Return the size of a target's byte represented by this section31    in numbers of host bytes. Note that certain architectures have32    varying minimum addressable unit (i.e. byte) size for their33    CODE or DATA buses.34 35    @return36        The number of host (8-bit) bytes needed to hold a target byte"37) lldb::SBSection::GetTargetByteSize;38