LLDB
mainline
llvm-project
lldb
source
Host
common
NativeWatchpointList.cpp
Go to the documentation of this file.
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
bool
hardware) {
18
m_watchpoints
[addr] = {addr, size, watch_flags, hardware};
19
return
Status
();
20
}
21
22
Status
NativeWatchpointList::Remove
(
addr_t
addr) {
23
m_watchpoints
.erase(addr);
24
return
Status
();
25
}
26
27
const
NativeWatchpointList::WatchpointMap
&
28
NativeWatchpointList::GetWatchpointMap
()
const
{
29
return
m_watchpoints
;
30
}
Log.h
NativeWatchpointList.h
lldb_private::NativeWatchpointList::Add
Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware)
Definition
NativeWatchpointList.cpp:16
lldb_private::NativeWatchpointList::m_watchpoints
WatchpointMap m_watchpoints
Definition
NativeWatchpointList.h:37
lldb_private::NativeWatchpointList::GetWatchpointMap
const WatchpointMap & GetWatchpointMap() const
Definition
NativeWatchpointList.cpp:28
lldb_private::NativeWatchpointList::Remove
Status Remove(lldb::addr_t addr)
Definition
NativeWatchpointList.cpp:22
lldb_private::NativeWatchpointList::WatchpointMap
std::map< lldb::addr_t, NativeWatchpoint > WatchpointMap
Definition
NativeWatchpointList.h:32
lldb_private::Status
An error handling class.
Definition
Status.h:118
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::LineStatus::Status
@ Status
Definition
lldb-private-enumerations.h:187
lldb
Definition
SBAddress.h:15
lldb::addr_t
uint64_t addr_t
Definition
lldb-types.h:80
Generated on
for LLDB by
1.14.0