LLDB
mainline
llvm-project
lldb
include
lldb
Host
common
NativeWatchpointList.h
Go to the documentation of this file.
1
//===-- NativeWatchpointList.h ----------------------------------*- C++ -*-===//
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
#ifndef LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
10
#define LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
11
12
#include "
lldb/Utility/Status.h
"
13
#include "
lldb/lldb-private-forward.h
"
14
15
#include <map>
16
17
namespace
lldb_private
{
18
struct
NativeWatchpoint
{
19
lldb::addr_t
m_addr
;
20
size_t
m_size
;
21
uint32_t
m_watch_flags
;
22
bool
m_hardware
;
23
};
24
25
class
NativeWatchpointList
{
26
public
:
27
Status
Add
(
lldb::addr_t
addr,
size_t
size,
uint32_t
watch_flags,
28
bool
hardware);
29
30
Status
Remove
(
lldb::addr_t
addr);
31
32
using
WatchpointMap
= std::map<lldb::addr_t, NativeWatchpoint>;
33
34
const
WatchpointMap
&
GetWatchpointMap
()
const
;
35
36
private
:
37
WatchpointMap
m_watchpoints
;
38
};
39
}
40
41
#endif // LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
lldb_private::NativeWatchpoint::m_watch_flags
uint32_t m_watch_flags
Definition:
NativeWatchpointList.h:21
lldb_private::NativeWatchpoint::m_addr
lldb::addr_t m_addr
Definition:
NativeWatchpointList.h:19
lldb_private::NativeWatchpoint::m_size
size_t m_size
Definition:
NativeWatchpointList.h:20
lldb::addr_t
uint64_t addr_t
Definition:
lldb-types.h:83
lldb_private::NativeWatchpointList::m_watchpoints
WatchpointMap m_watchpoints
Definition:
NativeWatchpointList.h:37
lldb_private::NativeWatchpointList::WatchpointMap
std::map< lldb::addr_t, NativeWatchpoint > WatchpointMap
Definition:
NativeWatchpointList.h:32
lldb-private-forward.h
lldb_private::NativeWatchpoint::m_hardware
bool m_hardware
Definition:
NativeWatchpointList.h:22
lldb_private::NativeWatchpointList::GetWatchpointMap
const WatchpointMap & GetWatchpointMap() const
Definition:
NativeWatchpointList.cpp:28
lldb_private::Status
Definition:
Status.h:44
uint32_t
lldb_private::NativeWatchpointList
Definition:
NativeWatchpointList.h:25
lldb_private::NativeWatchpoint
Definition:
NativeWatchpointList.h:18
Status.h
lldb_private
A class that represents a running process on the host machine.
Definition:
SBCommandInterpreterRunOptions.h:16
lldb_private::NativeWatchpointList::Remove
Status Remove(lldb::addr_t addr)
Definition:
NativeWatchpointList.cpp:22
lldb_private::NativeWatchpointList::Add
Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware)
Definition:
NativeWatchpointList.cpp:16
Generated on Mon May 16 2022 03:46:50 for LLDB by
1.8.17