File indexing completed on 2026-05-10 08:42:48
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
0010 #define LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
0011
0012 #include "lldb/Utility/Status.h"
0013 #include "lldb/lldb-private-forward.h"
0014
0015 #include <map>
0016
0017 namespace lldb_private {
0018 struct NativeWatchpoint {
0019 lldb::addr_t m_addr;
0020 size_t m_size;
0021 uint32_t m_watch_flags;
0022 bool m_hardware;
0023 };
0024
0025 class NativeWatchpointList {
0026 public:
0027 Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags,
0028 bool hardware);
0029
0030 Status Remove(lldb::addr_t addr);
0031
0032 using WatchpointMap = std::map<lldb::addr_t, NativeWatchpoint>;
0033
0034 const WatchpointMap &GetWatchpointMap() const;
0035
0036 private:
0037 WatchpointMap m_watchpoints;
0038 };
0039 }
0040
0041 #endif