1 //===-- OptionGroupWatchpoint.h ---------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_OptionGroupWatchpoint_h_
11 #define liblldb_OptionGroupWatchpoint_h_
13 #include "lldb/Interpreter/Options.h"
15 namespace lldb_private {
17 //-------------------------------------------------------------------------
18 // OptionGroupWatchpoint
19 //-------------------------------------------------------------------------
21 class OptionGroupWatchpoint : public OptionGroup {
23 OptionGroupWatchpoint();
25 ~OptionGroupWatchpoint() override;
27 static bool IsWatchSizeSupported(uint32_t watch_size);
29 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
31 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
32 ExecutionContext *execution_context) override;
33 Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
35 void OptionParsingStarting(ExecutionContext *execution_context) override;
38 // eWatchRead == LLDB_WATCH_TYPE_READ; and
39 // eWatchWrite == LLDB_WATCH_TYPE_WRITE
40 typedef enum WatchType {
49 bool watch_type_specified;
52 DISALLOW_COPY_AND_ASSIGN(OptionGroupWatchpoint);
55 } // namespace lldb_private
57 #endif // liblldb_OptionGroupWatchpoint_h_