1 //===-- NativeWatchpointList.cpp --------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Host/common/NativeWatchpointList.h"
11 #include "lldb/Utility/Log.h"
14 using namespace lldb_private;
16 Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
18 m_watchpoints[addr] = {addr, size, watch_flags, hardware};
22 Status NativeWatchpointList::Remove(addr_t addr) {
23 m_watchpoints.erase(addr);
27 const NativeWatchpointList::WatchpointMap &
28 NativeWatchpointList::GetWatchpointMap() const {