1 //===-- NativeWatchpointList.cpp --------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "lldb/Host/common/NativeWatchpointList.h"
11 
12 #include "lldb/Utility/Log.h"
13 
14 using namespace lldb;
15 using namespace lldb_private;
16 
Add(addr_t addr,size_t size,uint32_t watch_flags,bool hardware)17 Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
18                                  bool hardware) {
19   m_watchpoints[addr] = {addr, size, watch_flags, hardware};
20   return Status();
21 }
22 
Remove(addr_t addr)23 Status NativeWatchpointList::Remove(addr_t addr) {
24   m_watchpoints.erase(addr);
25   return Status();
26 }
27 
28 const NativeWatchpointList::WatchpointMap &
GetWatchpointMap() const29 NativeWatchpointList::GetWatchpointMap() const {
30   return m_watchpoints;
31 }
32