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/lldb-private-forward.h"
14 #include "lldb/Core/Error.h"
18 namespace lldb_private
20 struct NativeWatchpoint
24 uint32_t m_watch_flags;
28 class NativeWatchpointList
32 Add (lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware);
35 Remove (lldb::addr_t addr);
37 using WatchpointMap = std::map<lldb::addr_t, NativeWatchpoint>;
40 GetWatchpointMap () const;
43 WatchpointMap m_watchpoints;
47 #endif // ifndef liblldb_NativeWatchpointList_h_