blob: 27b329e785537040588459320f32fa5ba3a7eff2 [file] [log] [blame]
Greg Clayton432efbc2011-09-24 01:32:22 +00001//===-- 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
10namespace lldb {
11
12%feature("docstring",
13"Represents an executable image section."
14) SBSection;
15
16class SBSection
17{
18public:
19
20 SBSection ();
21
22 SBSection (const lldb::SBSection &rhs);
23
24 ~SBSection ();
25
26 bool
27 IsValid () const;
28
29 lldb::SBSection
30 FindSubSection (const char *sect_name);
31
32 size_t
33 GetNumSubSections ();
34
35 lldb::SBSection
36 GetSubSectionAtIndex (size_t idx);
37
38 lldb::addr_t
39 GetFileAddress ();
40
41 lldb::addr_t
42 GetByteSize ();
43
44 uint64_t
45 GetFileOffset ();
46
47 uint64_t
48 GetFileByteSize ();
49
50 lldb::SBData
51 GetSectionData (uint64_t offset,
52 uint64_t size);
53
54 SectionType
55 GetSectionType ();
56
57 bool
58 GetDescription (lldb::SBStream &description);
59
60private:
61
62 std::auto_ptr<lldb_private::SectionImpl> m_opaque_ap;
63};
64
65} // namespace lldb