blob: a206b34b3cf496fac6fa3edad4076fb96c2159e3 [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
Greg Clayton980c7502011-09-24 01:37:21 +000029 const char *
30 GetName ();
31
Greg Clayton432efbc2011-09-24 01:32:22 +000032 lldb::SBSection
33 FindSubSection (const char *sect_name);
34
35 size_t
36 GetNumSubSections ();
37
38 lldb::SBSection
39 GetSubSectionAtIndex (size_t idx);
40
41 lldb::addr_t
42 GetFileAddress ();
43
44 lldb::addr_t
45 GetByteSize ();
46
47 uint64_t
48 GetFileOffset ();
49
50 uint64_t
51 GetFileByteSize ();
52
53 lldb::SBData
54 GetSectionData (uint64_t offset,
55 uint64_t size);
56
57 SectionType
58 GetSectionType ();
59
60 bool
61 GetDescription (lldb::SBStream &description);
62
63private:
64
65 std::auto_ptr<lldb_private::SectionImpl> m_opaque_ap;
66};
67
68} // namespace lldb