Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:50

0001 //===-- OptionGroupWatchpoint.h ---------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H
0010 #define LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H
0011 
0012 #include "lldb/Interpreter/OptionValueUInt64.h"
0013 #include "lldb/Interpreter/Options.h"
0014 
0015 namespace lldb_private {
0016 
0017 // OptionGroupWatchpoint
0018 
0019 class OptionGroupWatchpoint : public OptionGroup {
0020 public:
0021   OptionGroupWatchpoint() = default;
0022 
0023   ~OptionGroupWatchpoint() override = default;
0024 
0025   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
0026 
0027   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
0028                         ExecutionContext *execution_context) override;
0029 
0030   void OptionParsingStarting(ExecutionContext *execution_context) override;
0031 
0032   /// eWatchRead == LLDB_WATCH_TYPE_READ
0033   /// eWatchWrite == LLDB_WATCH_TYPE_WRITE
0034   /// eWatchModify == LLDB_WATCH_TYPE_MODIFY
0035   /// eWatchReadWrite == LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE
0036   enum WatchType {
0037     eWatchInvalid = 0,
0038     eWatchRead,
0039     eWatchWrite,
0040     eWatchModify,
0041     eWatchReadWrite
0042   };
0043 
0044   WatchType watch_type;
0045   OptionValueUInt64 watch_size;
0046   bool watch_type_specified;
0047   lldb::LanguageType language_type;
0048 
0049 private:
0050   OptionGroupWatchpoint(const OptionGroupWatchpoint &) = delete;
0051   const OptionGroupWatchpoint &
0052   operator=(const OptionGroupWatchpoint &) = delete;
0053 };
0054 
0055 } // namespace lldb_private
0056 
0057 #endif // LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H