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 #include <utility> 13 #include <vector> 14 15 #include "lldb/Breakpoint/BreakpointName.h" 16 #include "lldb/Core/Address.h" 17 #include "lldb/Interpreter/CommandObjectMultiword.h" 18 #include "lldb/Interpreter/Options.h" 19 #include "lldb/lldb-private.h" 20 21 namespace lldb_private { 22 23 // CommandObjectMultiwordBreakpoint 24 25 class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword { 26 public: 27 CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter); 28 29 ~CommandObjectMultiwordBreakpoint() override; 30 31 static void VerifyBreakpointOrLocationIDs( 32 Args &args, Target *target, CommandReturnObject &result, 33 BreakpointIDList *valid_ids, 34 BreakpointName::Permissions ::PermissionKinds purpose) { 35 VerifyIDs(args, target, true, result, valid_ids, purpose); 36 } 37 38 static void 39 VerifyBreakpointIDs(Args &args, Target *target, CommandReturnObject &result, 40 BreakpointIDList *valid_ids, 41 BreakpointName::Permissions::PermissionKinds purpose) { 42 VerifyIDs(args, target, false, result, valid_ids, purpose); 43 } 44 45 private: 46 static void VerifyIDs(Args &args, Target *target, bool allow_locations, 47 CommandReturnObject &result, 48 BreakpointIDList *valid_ids, 49 BreakpointName::Permissions::PermissionKinds purpose); 50 }; 51 52 } // namespace lldb_private 53 54 #endif // liblldb_CommandObjectBreakpoint_h_ 55