LLDB  mainline
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"
14 
15 #include <map>
16 
17 namespace lldb_private {
20  size_t m_size;
22  bool m_hardware;
23 };
24 
26 public:
27  Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags,
28  bool hardware);
29 
31 
32  using WatchpointMap = std::map<lldb::addr_t, NativeWatchpoint>;
33 
34  const WatchpointMap &GetWatchpointMap() const;
35 
36 private:
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