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_
13 #include "lldb/Breakpoint/BreakpointName.h"
14 #include "lldb/Interpreter/CommandObjectMultiword.h"
16 namespace lldb_private
{
18 // CommandObjectMultiwordBreakpoint
20 class CommandObjectMultiwordBreakpoint
: public CommandObjectMultiword
{
22 CommandObjectMultiwordBreakpoint(CommandInterpreter
&interpreter
);
24 ~CommandObjectMultiwordBreakpoint() override
;
26 static void VerifyBreakpointOrLocationIDs(
27 Args
&args
, Target
*target
, CommandReturnObject
&result
,
28 BreakpointIDList
*valid_ids
,
29 BreakpointName::Permissions ::PermissionKinds purpose
) {
30 VerifyIDs(args
, target
, true, result
, valid_ids
, purpose
);
34 VerifyBreakpointIDs(Args
&args
, Target
*target
, CommandReturnObject
&result
,
35 BreakpointIDList
*valid_ids
,
36 BreakpointName::Permissions::PermissionKinds purpose
) {
37 VerifyIDs(args
, target
, false, result
, valid_ids
, purpose
);
41 static void VerifyIDs(Args
&args
, Target
*target
, bool allow_locations
,
42 CommandReturnObject
&result
,
43 BreakpointIDList
*valid_ids
,
44 BreakpointName::Permissions::PermissionKinds purpose
);
47 } // namespace lldb_private
49 #endif // liblldb_CommandObjectBreakpoint_h_