summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBSection.i
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-09-24 01:32:22 +0000
committerGreg Clayton <gclayton@apple.com>2011-09-24 01:32:22 +0000
commit64a4eaae06abaa936c15667e756aaaeeced688f2 (patch)
tree7ec4c7801402cc58acfabfbb6e33ccecc8cc86ea /lldb/scripts/Python/interface/SBSection.i
parent55cf2ed148c10dd9247bc01e767f0e6904a7b389 (diff)
downloadbcm5719-llvm-64a4eaae06abaa936c15667e756aaaeeced688f2.tar.gz
bcm5719-llvm-64a4eaae06abaa936c15667e756aaaeeced688f2.zip
Added missing file.
llvm-svn: 140442
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