File indexing completed on 2026-05-10 08:42:41
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_API_SBADDRESSRANGE_H
0010 #define LLDB_API_SBADDRESSRANGE_H
0011
0012 #include "lldb/API/SBDefines.h"
0013
0014 namespace lldb_private {
0015 class AddressRange;
0016 }
0017
0018 namespace lldb {
0019
0020 class LLDB_API SBAddressRange {
0021 public:
0022 SBAddressRange();
0023
0024 SBAddressRange(const lldb::SBAddressRange &rhs);
0025
0026 SBAddressRange(lldb::SBAddress addr, lldb::addr_t byte_size);
0027
0028 ~SBAddressRange();
0029
0030 const lldb::SBAddressRange &operator=(const lldb::SBAddressRange &rhs);
0031
0032 void Clear();
0033
0034
0035
0036
0037
0038
0039 bool IsValid() const;
0040
0041
0042
0043
0044
0045 lldb::SBAddress GetBaseAddress() const;
0046
0047
0048
0049
0050
0051 lldb::addr_t GetByteSize() const;
0052
0053 bool operator==(const SBAddressRange &rhs);
0054
0055 bool operator!=(const SBAddressRange &rhs);
0056
0057 bool GetDescription(lldb::SBStream &description, const SBTarget target);
0058
0059 private:
0060 friend class SBAddressRangeList;
0061 friend class SBBlock;
0062 friend class SBFunction;
0063 friend class SBProcess;
0064
0065 lldb_private::AddressRange &ref() const;
0066
0067 AddressRangeUP m_opaque_up;
0068 };
0069
0070 }
0071
0072 #endif