1 //===-- NativeWatchpointList.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 liblldb_NativeWatchpointList_h_
11 #define liblldb_NativeWatchpointList_h_
13 #include "lldb/Utility/Status.h"
14 #include "lldb/lldb-private-forward.h"
18 namespace lldb_private {
19 struct NativeWatchpoint {
22 uint32_t m_watch_flags;
26 class NativeWatchpointList {
28 Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags,
31 Status Remove(lldb::addr_t addr);
33 using WatchpointMap = std::map<lldb::addr_t, NativeWatchpoint>;
35 const WatchpointMap &GetWatchpointMap() const;
38 WatchpointMap m_watchpoints;
42 #endif // ifndef liblldb_NativeWatchpointList_h_