1 //===-- NativeWatchpointList.cpp --------------------------------*- 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 #include "lldb/Host/common/NativeWatchpointList.h"
12 #include "lldb/Core/Log.h"
15 using namespace lldb_private;
17 Error NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
19 m_watchpoints[addr] = {addr, size, watch_flags, hardware};
23 Error NativeWatchpointList::Remove(addr_t addr) {
24 m_watchpoints.erase(addr);
28 const NativeWatchpointList::WatchpointMap &
29 NativeWatchpointList::GetWatchpointMap() const {