]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/source/Commands/CommandObjectBreakpoint.h
Merge ^/vendor/llvm/dist up to its last change, and resolve conflicts.
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / source / Commands / CommandObjectBreakpoint.h
1 //===-- CommandObjectBreakpoint.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 liblldb_CommandObjectBreakpoint_h_
10 #define liblldb_CommandObjectBreakpoint_h_
11
12
13 #include <utility>
14 #include <vector>
15
16 #include "lldb/lldb-private.h"
17 #include "lldb/Breakpoint/BreakpointName.h"
18 #include "lldb/Core/Address.h"
19 #include "lldb/Core/STLUtils.h"
20 #include "lldb/Interpreter/CommandObjectMultiword.h"
21 #include "lldb/Interpreter/Options.h"
22
23
24 namespace lldb_private {
25
26 // CommandObjectMultiwordBreakpoint
27
28 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
29 public:
30   CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
31
32   ~CommandObjectMultiwordBreakpoint() override;
33
34   static void VerifyBreakpointOrLocationIDs(Args &args, Target *target,
35                                             CommandReturnObject &result,
36                                             BreakpointIDList *valid_ids,
37                                             BreakpointName::Permissions
38                                                  ::PermissionKinds purpose) {
39     VerifyIDs(args, target, true, result, valid_ids, purpose);
40   }
41
42   static void VerifyBreakpointIDs(Args &args, Target *target,
43                                   CommandReturnObject &result,
44                                   BreakpointIDList *valid_ids,
45                                   BreakpointName::Permissions::PermissionKinds 
46                                       purpose) {
47     VerifyIDs(args, target, false, result, valid_ids, purpose);
48   }
49
50 private:
51   static void VerifyIDs(Args &args, Target *target, bool allow_locations,
52                         CommandReturnObject &result,
53                         BreakpointIDList *valid_ids,
54                         BreakpointName::Permissions::PermissionKinds 
55                                       purpose);
56 };
57
58 } // namespace lldb_private
59
60 #endif // liblldb_CommandObjectBreakpoint_h_