1 //===-- SBSection.h ---------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBSection_h_
11 #define LLDB_SBSection_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBData.h"
18 class LLDB_API SBSection
24 SBSection (const lldb::SBSection &rhs);
28 const lldb::SBSection &
29 operator = (const lldb::SBSection &rhs);
41 FindSubSection (const char *sect_name);
47 GetSubSectionAtIndex (size_t idx);
53 GetLoadAddress (lldb::SBTarget &target);
68 GetSectionData (uint64_t offset,
74 //------------------------------------------------------------------
75 /// Return the size of a target's byte represented by this section
76 /// in numbers of host bytes. Note that certain architectures have
77 /// varying minimum addressable unit (i.e. byte) size for their
78 /// CODE or DATA buses.
81 /// The number of host (8-bit) bytes needed to hold a target byte
82 //------------------------------------------------------------------
87 operator == (const lldb::SBSection &rhs);
90 operator != (const lldb::SBSection &rhs);
93 GetDescription (lldb::SBStream &description);
98 friend class SBAddress;
99 friend class SBModule;
100 friend class SBTarget;
102 SBSection (const lldb::SectionSP §ion_sp);
108 SetSP(const lldb::SectionSP §ion_sp);
110 lldb::SectionWP m_opaque_wp;
116 #endif // LLDB_SBSection_h_