LLDB mainline
SBWatchpointOptions.h
Go to the documentation of this file.
1//===-- SBWatchpointOptions.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_API_SBWATCHPOINTOPTIONS_H
10#define LLDB_API_SBWATCHPOINTOPTIONS_H
11
12#include "lldb/API/SBDefines.h"
13
15
16namespace lldb {
17
19public:
21
23
25
27
28 /// Stop when the watched memory region is read.
29 void SetWatchpointTypeRead(bool read);
30 bool GetWatchpointTypeRead() const;
31
32 /// Stop when the watched memory region is written to/modified
35
36private:
37 // This auto_pointer is made in the constructor and is always valid.
38 mutable std::unique_ptr<WatchpointOptionsImpl> m_opaque_up;
39};
40
41} // namespace lldb
42
43#endif // LLDB_API_SBWATCHPOINTOPTIONS_H
#define LLDB_API
Definition SBDefines.h:28
std::unique_ptr< WatchpointOptionsImpl > m_opaque_up
const SBWatchpointOptions & operator=(const lldb::SBWatchpointOptions &rhs)
void SetWatchpointTypeWrite(lldb::WatchpointWriteType write_type)
Stop when the watched memory region is written to/modified.
lldb::WatchpointWriteType GetWatchpointTypeWrite() const
void SetWatchpointTypeRead(bool read)
Stop when the watched memory region is read.