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/lldb-private.h"
22 #include "lldb/Breakpoint/BreakpointName.h"
23 #include "lldb/Core/Address.h"
24 #include "lldb/Core/STLUtils.h"
25 #include "lldb/Interpreter/CommandObjectMultiword.h"
26 #include "lldb/Interpreter/Options.h"
27 
28 
29 namespace lldb_private {
30 
31 //-------------------------------------------------------------------------
32 // CommandObjectMultiwordBreakpoint
33 //-------------------------------------------------------------------------
34 
35 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
36 public:
37   CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
38 
39   ~CommandObjectMultiwordBreakpoint() override;
40 
41   static void VerifyBreakpointOrLocationIDs(Args &args, Target *target,
42                                             CommandReturnObject &result,
43                                             BreakpointIDList *valid_ids,
44                                             BreakpointName::Permissions
45                                                  ::PermissionKinds purpose) {
46     VerifyIDs(args, target, true, result, valid_ids, purpose);
47   }
48 
49   static void VerifyBreakpointIDs(Args &args, Target *target,
50                                   CommandReturnObject &result,
51                                   BreakpointIDList *valid_ids,
52                                   BreakpointName::Permissions::PermissionKinds
53                                       purpose) {
54     VerifyIDs(args, target, false, result, valid_ids, purpose);
55   }
56 
57 private:
58   static void VerifyIDs(Args &args, Target *target, bool allow_locations,
59                         CommandReturnObject &result,
60                         BreakpointIDList *valid_ids,
61                         BreakpointName::Permissions::PermissionKinds
62                                       purpose);
63 };
64 
65 } // namespace lldb_private
66 
67 #endif // liblldb_CommandObjectBreakpoint_h_
68