1 //===-- CommandObjectBreakpoint.h -------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_CommandObjectBreakpoint_h_
10 #define liblldb_CommandObjectBreakpoint_h_
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"
24 namespace lldb_private {
26 // CommandObjectMultiwordBreakpoint
28 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
30 CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
32 ~CommandObjectMultiwordBreakpoint() override;
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);
42 static void VerifyBreakpointIDs(Args &args, Target *target,
43 CommandReturnObject &result,
44 BreakpointIDList *valid_ids,
45 BreakpointName::Permissions::PermissionKinds
47 VerifyIDs(args, target, false, result, valid_ids, purpose);
51 static void VerifyIDs(Args &args, Target *target, bool allow_locations,
52 CommandReturnObject &result,
53 BreakpointIDList *valid_ids,
54 BreakpointName::Permissions::PermissionKinds
58 } // namespace lldb_private
60 #endif // liblldb_CommandObjectBreakpoint_h_