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