1 //===-- OptionGroupWatchpoint.h ---------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_OptionGroupWatchpoint_h_
10 #define liblldb_OptionGroupWatchpoint_h_
12 #include "lldb/Interpreter/Options.h"
14 namespace lldb_private {
16 // OptionGroupWatchpoint
18 class OptionGroupWatchpoint : public OptionGroup {
20 OptionGroupWatchpoint();
22 ~OptionGroupWatchpoint() override;
24 static bool IsWatchSizeSupported(uint32_t watch_size);
26 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
28 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
29 ExecutionContext *execution_context) override;
30 Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
32 void OptionParsingStarting(ExecutionContext *execution_context) override;
35 // eWatchRead == LLDB_WATCH_TYPE_READ; and
36 // eWatchWrite == LLDB_WATCH_TYPE_WRITE
46 bool watch_type_specified;
49 DISALLOW_COPY_AND_ASSIGN(OptionGroupWatchpoint);
52 } // namespace lldb_private
54 #endif // liblldb_OptionGroupWatchpoint_h_