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
17namespace lldb_private {
20 size_t m_size;
21 uint32_t m_watch_flags;
23};
24
26public:
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
36private:
38};
39}
40
41#endif // LLDB_HOST_COMMON_NATIVEWATCHPOINTLIST_H
Status Add(lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware)
const WatchpointMap & GetWatchpointMap() const
std::map< lldb::addr_t, NativeWatchpoint > WatchpointMap
An error handling class.
Definition: Status.h:44
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
uint64_t addr_t
Definition: lldb-types.h:79