]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Commands/CommandObjectBreakpoint.h
MFV r323917: 8648 Fix range locking in ZIL commit codepath
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Commands / CommandObjectBreakpoint.h
1 //===-- CommandObjectBreakpoint.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_CommandObjectBreakpoint_h_
11 #define liblldb_CommandObjectBreakpoint_h_
12
13 // C Includes
14 // C++ Includes
15
16 #include <utility>
17 #include <vector>
18
19 // Other libraries and framework includes
20 // Project includes
21 #include "lldb/Core/Address.h"
22 #include "lldb/Core/STLUtils.h"
23 #include "lldb/Interpreter/CommandObjectMultiword.h"
24 #include "lldb/Interpreter/Options.h"
25
26 namespace lldb_private {
27
28 //-------------------------------------------------------------------------
29 // CommandObjectMultiwordBreakpoint
30 //-------------------------------------------------------------------------
31
32 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
33 public:
34   CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
35
36   ~CommandObjectMultiwordBreakpoint() override;
37
38   static void VerifyBreakpointOrLocationIDs(Args &args, Target *target,
39                                             CommandReturnObject &result,
40                                             BreakpointIDList *valid_ids) {
41     VerifyIDs(args, target, true, result, valid_ids);
42   }
43
44   static void VerifyBreakpointIDs(Args &args, Target *target,
45                                   CommandReturnObject &result,
46                                   BreakpointIDList *valid_ids) {
47     VerifyIDs(args, target, false, result, valid_ids);
48   }
49
50 private:
51   static void VerifyIDs(Args &args, Target *target, bool allow_locations,
52                         CommandReturnObject &result,
53                         BreakpointIDList *valid_ids);
54 };
55
56 } // namespace lldb_private
57
58 #endif // liblldb_CommandObjectBreakpoint_h_