]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h
Merge ^/head r303250 through r308226.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Interpreter / OptionGroupWatchpoint.h
1 //===-- OptionGroupWatchpoint.h ---------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_OptionGroupWatchpoint_h_
11 #define liblldb_OptionGroupWatchpoint_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Interpreter/Options.h"
18
19 namespace lldb_private {
20
21 //-------------------------------------------------------------------------
22 // OptionGroupWatchpoint
23 //-------------------------------------------------------------------------
24
25     class OptionGroupWatchpoint : public OptionGroup
26     {
27     public:
28         OptionGroupWatchpoint ();
29
30         ~OptionGroupWatchpoint() override;
31
32         static bool
33         IsWatchSizeSupported(uint32_t watch_size);
34
35         uint32_t
36         GetNumDefinitions() override;
37         
38         const OptionDefinition*
39         GetDefinitions() override;
40         
41         Error
42         SetOptionValue(CommandInterpreter &interpreter,
43                        uint32_t option_idx,
44                        const char *option_arg) override;
45         
46         void
47         OptionParsingStarting(CommandInterpreter &interpreter) override;
48         
49         // Note:
50         // eWatchRead == LLDB_WATCH_TYPE_READ; and
51         // eWatchWrite == LLDB_WATCH_TYPE_WRITE
52         typedef enum WatchType {
53             eWatchInvalid = 0,
54             eWatchRead,
55             eWatchWrite,
56             eWatchReadWrite
57         } WatchType;
58
59         WatchType watch_type;
60         uint32_t watch_size;
61         bool watch_type_specified;
62
63     private:
64         DISALLOW_COPY_AND_ASSIGN(OptionGroupWatchpoint);
65     };
66     
67 } // namespace lldb_private
68
69 #endif // liblldb_OptionGroupWatchpoint_h_