blob: 38af7a11a010aad6804ef492ef5220567e7894a3 [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",
Johnny Chendc0cbd12011-09-24 04:51:43 +000013"Represents an executable image section.
14
15SBSection supports iteration through its subsection, represented as SBSection
16as well."
Greg Clayton432efbc2011-09-24 01:32:22 +000017) SBSection;
18
19class SBSection
20{
21public:
22
23 SBSection ();
24
25 SBSection (const lldb::SBSection &rhs);
26
27 ~SBSection ();
28
29 bool
30 IsValid () const;
31
Greg Clayton980c7502011-09-24 01:37:21 +000032 const char *
33 GetName ();
34
Greg Clayton432efbc2011-09-24 01:32:22 +000035 lldb::SBSection
36 FindSubSection (const char *sect_name);
37
38 size_t
39 GetNumSubSections ();
40
41 lldb::SBSection
42 GetSubSectionAtIndex (size_t idx);
43
44 lldb::addr_t
45 GetFileAddress ();
46
47 lldb::addr_t
48 GetByteSize ();
49
50 uint64_t
51 GetFileOffset ();
52
53 uint64_t
54 GetFileByteSize ();
55
56 lldb::SBData
Greg Clayton15ef51e2011-09-24 05:04:40 +000057 GetSectionData ();
58
59 lldb::SBData
Greg Clayton432efbc2011-09-24 01:32:22 +000060 GetSectionData (uint64_t offset,
61 uint64_t size);
62
63 SectionType
64 GetSectionType ();
65
66 bool
67 GetDescription (lldb::SBStream &description);
68
69private:
70
71 std::auto_ptr<lldb_private::SectionImpl> m_opaque_ap;
72};
73
74} // namespace lldb