File indexing completed on 2026-05-10 08:42:42
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_API_SBSECTION_H
0010 #define LLDB_API_SBSECTION_H
0011
0012 #include "lldb/API/SBData.h"
0013 #include "lldb/API/SBDefines.h"
0014
0015 namespace lldb {
0016
0017 class LLDB_API SBSection {
0018 public:
0019 SBSection();
0020
0021 SBSection(const lldb::SBSection &rhs);
0022
0023 ~SBSection();
0024
0025 const lldb::SBSection &operator=(const lldb::SBSection &rhs);
0026
0027 explicit operator bool() const;
0028
0029 bool IsValid() const;
0030
0031 const char *GetName();
0032
0033 lldb::SBSection GetParent();
0034
0035 lldb::SBSection FindSubSection(const char *sect_name);
0036
0037 size_t GetNumSubSections();
0038
0039 lldb::SBSection GetSubSectionAtIndex(size_t idx);
0040
0041 lldb::addr_t GetFileAddress();
0042
0043 lldb::addr_t GetLoadAddress(lldb::SBTarget &target);
0044
0045 lldb::addr_t GetByteSize();
0046
0047 uint64_t GetFileOffset();
0048
0049 uint64_t GetFileByteSize();
0050
0051 lldb::SBData GetSectionData();
0052
0053 lldb::SBData GetSectionData(uint64_t offset, uint64_t size);
0054
0055 SectionType GetSectionType();
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067 uint32_t
0068 GetPermissions() const;
0069
0070
0071
0072
0073
0074
0075
0076
0077 uint32_t GetTargetByteSize();
0078
0079
0080
0081
0082
0083 uint32_t GetAlignment();
0084
0085 bool operator==(const lldb::SBSection &rhs);
0086
0087 bool operator!=(const lldb::SBSection &rhs);
0088
0089 bool GetDescription(lldb::SBStream &description);
0090
0091 private:
0092 friend class SBAddress;
0093 friend class SBModule;
0094 friend class SBTarget;
0095
0096 SBSection(const lldb::SectionSP §ion_sp);
0097
0098 lldb::SectionSP GetSP() const;
0099
0100 void SetSP(const lldb::SectionSP §ion_sp);
0101
0102 lldb::SectionWP m_opaque_wp;
0103 };
0104
0105 }
0106
0107 #endif