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 liblldb_NativeWatchpointList_h_
10 #define liblldb_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 
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 // ifndef liblldb_NativeWatchpointList_h_
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
uint64_t addr_t
Definition: lldb-types.h:83
std::map< lldb::addr_t, NativeWatchpoint > WatchpointMap
An error handling class.
Definition: Status.h:44