From 64a4eaae06abaa936c15667e756aaaeeced688f2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 24 Sep 2011 01:32:22 +0000 Subject: [PATCH] Added missing file. llvm-svn: 140442 --- lldb/scripts/Python/interface/SBSection.i | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 lldb/scripts/Python/interface/SBSection.i diff --git a/lldb/scripts/Python/interface/SBSection.i b/lldb/scripts/Python/interface/SBSection.i new file mode 100644 index 000000000000..27b329e78553 --- /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 m_opaque_ap; +}; + +} // namespace lldb