/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h
Line | Count | Source |
1 | | //===-- OptionGroupWatchpoint.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_INTERPRETER_OPTIONGROUPWATCHPOINT_H |
10 | | #define LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H |
11 | | |
12 | | #include "lldb/Interpreter/Options.h" |
13 | | |
14 | | namespace lldb_private { |
15 | | |
16 | | // OptionGroupWatchpoint |
17 | | |
18 | | class OptionGroupWatchpoint : public OptionGroup { |
19 | | public: |
20 | 12.1k | OptionGroupWatchpoint() = default; |
21 | | |
22 | 12.1k | ~OptionGroupWatchpoint() override = default; |
23 | | |
24 | | static bool IsWatchSizeSupported(uint32_t watch_size); |
25 | | |
26 | | llvm::ArrayRef<OptionDefinition> GetDefinitions() override; |
27 | | |
28 | | Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, |
29 | | ExecutionContext *execution_context) override; |
30 | | |
31 | | void OptionParsingStarting(ExecutionContext *execution_context) override; |
32 | | |
33 | | /// eWatchRead == LLDB_WATCH_TYPE_READ |
34 | | /// eWatchWrite == LLDB_WATCH_TYPE_WRITE |
35 | | /// eWatchModify == LLDB_WATCH_TYPE_MODIFY |
36 | | /// eWatchReadWrite == LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE |
37 | | enum WatchType { |
38 | | eWatchInvalid = 0, |
39 | | eWatchRead, |
40 | | eWatchWrite, |
41 | | eWatchModify, |
42 | | eWatchReadWrite |
43 | | }; |
44 | | |
45 | | WatchType watch_type; |
46 | | uint32_t watch_size; |
47 | | bool watch_type_specified; |
48 | | lldb::LanguageType language_type; |
49 | | |
50 | | private: |
51 | | OptionGroupWatchpoint(const OptionGroupWatchpoint &) = delete; |
52 | | const OptionGroupWatchpoint & |
53 | | operator=(const OptionGroupWatchpoint &) = delete; |
54 | | }; |
55 | | |
56 | | } // namespace lldb_private |
57 | | |
58 | | #endif // LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H |