Coverage Report

Created: 2022-01-25 06:29

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Host/common/NativeWatchpointList.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- NativeWatchpointList.cpp ------------------------------------------===//
2
//
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
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "lldb/Host/common/NativeWatchpointList.h"
10
11
#include "lldb/Utility/Log.h"
12
13
using namespace lldb;
14
using namespace lldb_private;
15
16
Status NativeWatchpointList::Add(addr_t addr, size_t size, uint32_t watch_flags,
17
0
                                 bool hardware) {
18
0
  m_watchpoints[addr] = {addr, size, watch_flags, hardware};
19
0
  return Status();
20
0
}
21
22
0
Status NativeWatchpointList::Remove(addr_t addr) {
23
0
  m_watchpoints.erase(addr);
24
0
  return Status();
25
0
}
26
27
const NativeWatchpointList::WatchpointMap &
28
0
NativeWatchpointList::GetWatchpointMap() const {
29
0
  return m_watchpoints;
30
0
}