Greg Clayton | 432efbc | 2011-09-24 01:32:22 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBSection ----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | %feature("docstring", |
Johnny Chen | dc0cbd1 | 2011-09-24 04:51:43 +0000 | [diff] [blame] | 13 | "Represents an executable image section. |
| 14 | |
| 15 | SBSection supports iteration through its subsection, represented as SBSection |
| 16 | as well." |
Greg Clayton | 432efbc | 2011-09-24 01:32:22 +0000 | [diff] [blame] | 17 | ) SBSection; |
| 18 | |
| 19 | class SBSection |
| 20 | { |
| 21 | public: |
| 22 | |
| 23 | SBSection (); |
| 24 | |
| 25 | SBSection (const lldb::SBSection &rhs); |
| 26 | |
| 27 | ~SBSection (); |
| 28 | |
| 29 | bool |
| 30 | IsValid () const; |
| 31 | |
Greg Clayton | 980c750 | 2011-09-24 01:37:21 +0000 | [diff] [blame] | 32 | const char * |
| 33 | GetName (); |
| 34 | |
Greg Clayton | 432efbc | 2011-09-24 01:32:22 +0000 | [diff] [blame] | 35 | lldb::SBSection |
| 36 | FindSubSection (const char *sect_name); |
| 37 | |
| 38 | size_t |
| 39 | GetNumSubSections (); |
| 40 | |
| 41 | lldb::SBSection |
| 42 | GetSubSectionAtIndex (size_t idx); |
| 43 | |
| 44 | lldb::addr_t |
| 45 | GetFileAddress (); |
| 46 | |
| 47 | lldb::addr_t |
| 48 | GetByteSize (); |
| 49 | |
| 50 | uint64_t |
| 51 | GetFileOffset (); |
| 52 | |
| 53 | uint64_t |
| 54 | GetFileByteSize (); |
| 55 | |
| 56 | lldb::SBData |
Greg Clayton | 15ef51e | 2011-09-24 05:04:40 +0000 | [diff] [blame^] | 57 | GetSectionData (); |
| 58 | |
| 59 | lldb::SBData |
Greg Clayton | 432efbc | 2011-09-24 01:32:22 +0000 | [diff] [blame] | 60 | GetSectionData (uint64_t offset, |
| 61 | uint64_t size); |
| 62 | |
| 63 | SectionType |
| 64 | GetSectionType (); |
| 65 | |
| 66 | bool |
| 67 | GetDescription (lldb::SBStream &description); |
| 68 | |
| 69 | private: |
| 70 | |
| 71 | std::auto_ptr<lldb_private::SectionImpl> m_opaque_ap; |
| 72 | }; |
| 73 | |
| 74 | } // namespace lldb |