LLDB  mainline
OptionGroupWatchpoint.h
Go to the documentation of this file.
1 //===-- OptionGroupWatchpoint.h ---------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H
10 #define LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H
11 
13 
14 namespace lldb_private {
15 
16 // OptionGroupWatchpoint
17 
19 public:
20  OptionGroupWatchpoint() = default;
21 
22  ~OptionGroupWatchpoint() override = default;
23 
25 
26  llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
27 
28  Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
29  ExecutionContext *execution_context) override;
30 
31  void OptionParsingStarting(ExecutionContext *execution_context) override;
32 
33  // Note:
34  // eWatchRead == LLDB_WATCH_TYPE_READ; and
35  // eWatchWrite == LLDB_WATCH_TYPE_WRITE
36  enum WatchType {
41  };
42 
46 
47 private:
49  const OptionGroupWatchpoint &
50  operator=(const OptionGroupWatchpoint &) = delete;
51 };
52 
53 } // namespace lldb_private
54 
55 #endif // LLDB_INTERPRETER_OPTIONGROUPWATCHPOINT_H
lldb_private::OptionGroupWatchpoint
Definition: OptionGroupWatchpoint.h:18
lldb_private::ExecutionContext
Definition: ExecutionContext.h:291
lldb_private::OptionGroupWatchpoint::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition: OptionGroupWatchpoint.cpp:106
lldb_private::OptionGroupWatchpoint::watch_type
WatchType watch_type
Definition: OptionGroupWatchpoint.h:43
lldb_private::OptionGroupWatchpoint::eWatchInvalid
@ eWatchInvalid
Definition: OptionGroupWatchpoint.h:37
lldb_private::OptionGroup
Definition: Options.h:233
Options.h
lldb_private::OptionGroupWatchpoint::WatchType
WatchType
Definition: OptionGroupWatchpoint.h:36
lldb_private::OptionGroupWatchpoint::eWatchRead
@ eWatchRead
Definition: OptionGroupWatchpoint.h:38
lldb_private::OptionGroupWatchpoint::OptionGroupWatchpoint
OptionGroupWatchpoint()=default
lldb_private::OptionGroupWatchpoint::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition: OptionGroupWatchpoint.cpp:78
lldb_private::OptionGroupWatchpoint::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition: OptionGroupWatchpoint.cpp:113
lldb_private::OptionGroupWatchpoint::~OptionGroupWatchpoint
~OptionGroupWatchpoint() override=default
lldb_private::OptionGroupWatchpoint::watch_size
uint32_t watch_size
Definition: OptionGroupWatchpoint.h:44
lldb_private::Status
Definition: Status.h:44
uint32_t
lldb_private::OptionGroupWatchpoint::watch_type_specified
bool watch_type_specified
Definition: OptionGroupWatchpoint.h:45
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::OptionGroupWatchpoint::IsWatchSizeSupported
static bool IsWatchSizeSupported(uint32_t watch_size)
Definition: OptionGroupWatchpoint.cpp:67
lldb_private::OptionGroupWatchpoint::operator=
const OptionGroupWatchpoint & operator=(const OptionGroupWatchpoint &)=delete
lldb_private::OptionGroupWatchpoint::eWatchReadWrite
@ eWatchReadWrite
Definition: OptionGroupWatchpoint.h:40
lldb_private::OptionGroupWatchpoint::eWatchWrite
@ eWatchWrite
Definition: OptionGroupWatchpoint.h:39