11c3bbb01SEd Maste //===-- NativeWatchpointList.cpp --------------------------------*- C++ -*-===//
21c3bbb01SEd Maste //
31c3bbb01SEd Maste //                     The LLVM Compiler Infrastructure
41c3bbb01SEd Maste //
51c3bbb01SEd Maste // This file is distributed under the University of Illinois Open Source
61c3bbb01SEd Maste // License. See LICENSE.TXT for details.
71c3bbb01SEd Maste //
81c3bbb01SEd Maste //===----------------------------------------------------------------------===//
91c3bbb01SEd Maste 
101c3bbb01SEd Maste #include "lldb/Host/common/NativeWatchpointList.h"
111c3bbb01SEd Maste 
12f678e45dSDimitry Andric #include "lldb/Utility/Log.h"
131c3bbb01SEd Maste 
141c3bbb01SEd Maste using namespace lldb;
151c3bbb01SEd Maste using namespace lldb_private;
161c3bbb01SEd Maste 
Add(addr_t addr,size_t size,uint32_t watch_flags,bool hardware)17*5517e702SDimitry Andric Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
18435933ddSDimitry Andric                                  bool hardware) {
191c3bbb01SEd Maste   m_watchpoints[addr] = {addr, size, watch_flags, hardware};
20*5517e702SDimitry Andric   return Status();
211c3bbb01SEd Maste }
221c3bbb01SEd Maste 
Remove(addr_t addr)23*5517e702SDimitry Andric Status NativeWatchpointList::Remove(addr_t addr) {
241c3bbb01SEd Maste   m_watchpoints.erase(addr);
25*5517e702SDimitry Andric   return Status();
261c3bbb01SEd Maste }
271c3bbb01SEd Maste 
281c3bbb01SEd Maste const NativeWatchpointList::WatchpointMap &
GetWatchpointMap() const29435933ddSDimitry Andric NativeWatchpointList::GetWatchpointMap() const {
301c3bbb01SEd Maste   return m_watchpoints;
311c3bbb01SEd Maste }
32