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_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/Options.h"
19 namespace lldb_private {
21 //-------------------------------------------------------------------------
22 // OptionGroupWatchpoint
23 //-------------------------------------------------------------------------
25 class OptionGroupWatchpoint : public OptionGroup {
27 OptionGroupWatchpoint();
29 ~OptionGroupWatchpoint() override;
31 static bool IsWatchSizeSupported(uint32_t watch_size);
33 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
35 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
36 ExecutionContext *execution_context) override;
37 Status SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
39 void OptionParsingStarting(ExecutionContext *execution_context) override;
42 // eWatchRead == LLDB_WATCH_TYPE_READ; and
43 // eWatchWrite == LLDB_WATCH_TYPE_WRITE
44 typedef enum WatchType {
53 bool watch_type_specified;
56 DISALLOW_COPY_AND_ASSIGN(OptionGroupWatchpoint);
59 } // namespace lldb_private
61 #endif // liblldb_OptionGroupWatchpoint_h_