summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBSection.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBSection.i')
-rw-r--r--lldb/scripts/Python/interface/SBSection.i65
1 files changed, 65 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBSection.i b/lldb/scripts/Python/interface/SBSection.i
new file mode 100644
index 00000000000..27b329e7855
--- /dev/null
+++ b/lldb/scripts/Python/interface/SBSection.i
@@ -0,0 +1,65 @@
+//===-- SWIG Interface for SBSection ----------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+namespace lldb {
+
+%feature("docstring",
+"Represents an executable image section."
+) SBSection;
+
+class SBSection
+{
+public:
+
+ SBSection ();
+
+ SBSection (const lldb::SBSection &rhs);
+
+ ~SBSection ();
+
+ bool
+ IsValid () const;
+
+ lldb::SBSection
+ FindSubSection (const char *sect_name);
+
+ size_t
+ GetNumSubSections ();
+
+ lldb::SBSection
+ GetSubSectionAtIndex (size_t idx);
+
+ lldb::addr_t
+ GetFileAddress ();
+
+ lldb::addr_t
+ GetByteSize ();
+
+ uint64_t
+ GetFileOffset ();
+
+ uint64_t
+ GetFileByteSize ();
+
+ lldb::SBData
+ GetSectionData (uint64_t offset,
+ uint64_t size);
+
+ SectionType
+ GetSectionType ();
+
+ bool
+ GetDescription (lldb::SBStream &description);
+
+private:
+
+ std::auto_ptr<lldb_private::SectionImpl> m_opaque_ap;
+};
+
+} // namespace lldb
OpenPOWER on IntegriCloud