File indexing completed on 2026-05-10 08:42:50
0001
0002
0003
0004
0005
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
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
0033
0034
0035
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 }
0056
0057 #endif