[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / lldb / source / Commands / CommandObjectBreakpoint.h
blobb29bbc0a74fafc865932974dcaed2e8361368753
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 //===----------------------------------------------------------------------===//
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 {
21 public:
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);
33 static void
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);
40 private:
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_