1 //===-- CommandObjectBreakpoint.h -------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_CommandObjectBreakpoint_h_
11 #define liblldb_CommandObjectBreakpoint_h_
19 // Other libraries and framework 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"
29 namespace lldb_private {
31 //-------------------------------------------------------------------------
32 // CommandObjectMultiwordBreakpoint
33 //-------------------------------------------------------------------------
35 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
37 CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
39 ~CommandObjectMultiwordBreakpoint() override;
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);
49 static void VerifyBreakpointIDs(Args &args, Target *target,
50 CommandReturnObject &result,
51 BreakpointIDList *valid_ids,
52 BreakpointName::Permissions::PermissionKinds
54 VerifyIDs(args, target, false, result, valid_ids, purpose);
58 static void VerifyIDs(Args &args, Target *target, bool allow_locations,
59 CommandReturnObject &result,
60 BreakpointIDList *valid_ids,
61 BreakpointName::Permissions::PermissionKinds
65 } // namespace lldb_private
67 #endif // liblldb_CommandObjectBreakpoint_h_