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/Core/Log.h" 13 14 using namespace lldb; 15 using namespace lldb_private; 16 17 Error 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 Error(); 21 } 22 23 Error NativeWatchpointList::Remove(addr_t addr) { 24 m_watchpoints.erase(addr); 25 return Error(); 26 } 27 28 const NativeWatchpointList::WatchpointMap & 29 NativeWatchpointList::GetWatchpointMap() const { 30 return m_watchpoints; 31 } 32