Path: blob/main/contrib/llvm-project/lldb/source/Host/common/NativeWatchpointList.cpp
39607 views
//===-- NativeWatchpointList.cpp ------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Host/common/NativeWatchpointList.h"910#include "lldb/Utility/Log.h"1112using namespace lldb;13using namespace lldb_private;1415Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,16bool hardware) {17m_watchpoints[addr] = {addr, size, watch_flags, hardware};18return Status();19}2021Status NativeWatchpointList::Remove(addr_t addr) {22m_watchpoints.erase(addr);23return Status();24}2526const NativeWatchpointList::WatchpointMap &27NativeWatchpointList::GetWatchpointMap() const {28return m_watchpoints;29}303132