2010-06-09 00:52:24 +08:00
|
|
|
//===-- CommandObjectBreakpoint.h -------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-06-09 00:52:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2020-02-18 07:57:45 +08:00
|
|
|
#ifndef LLDB_SOURCE_COMMANDS_COMMANDOBJECTBREAKPOINT_H
|
|
|
|
#define LLDB_SOURCE_COMMANDS_COMMANDOBJECTBREAKPOINT_H
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2017-09-15 04:22:49 +08:00
|
|
|
#include "lldb/Breakpoint/BreakpointName.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Interpreter/CommandObjectMultiword.h"
|
2017-09-15 04:22:49 +08:00
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
namespace lldb_private {
|
|
|
|
|
|
|
|
// CommandObjectMultiwordBreakpoint
|
|
|
|
|
|
|
|
class CommandObjectMultiwordBreakpoint : public CommandObjectMultiword {
|
|
|
|
public:
|
2010-06-23 09:19:29 +08:00
|
|
|
CommandObjectMultiwordBreakpoint(CommandInterpreter &interpreter);
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2015-09-02 17:33:09 +08:00
|
|
|
~CommandObjectMultiwordBreakpoint() override;
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2019-10-31 06:26:19 +08:00
|
|
|
static void VerifyBreakpointOrLocationIDs(
|
|
|
|
Args &args, Target *target, CommandReturnObject &result,
|
|
|
|
BreakpointIDList *valid_ids,
|
|
|
|
BreakpointName::Permissions ::PermissionKinds purpose) {
|
2017-09-15 04:22:49 +08:00
|
|
|
VerifyIDs(args, target, true, result, valid_ids, purpose);
|
2014-12-17 07:40:14 +08:00
|
|
|
}
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2019-10-31 06:26:19 +08:00
|
|
|
static void
|
|
|
|
VerifyBreakpointIDs(Args &args, Target *target, CommandReturnObject &result,
|
|
|
|
BreakpointIDList *valid_ids,
|
|
|
|
BreakpointName::Permissions::PermissionKinds purpose) {
|
2017-09-15 04:22:49 +08:00
|
|
|
VerifyIDs(args, target, false, result, valid_ids, purpose);
|
2014-12-17 07:40:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void VerifyIDs(Args &args, Target *target, bool allow_locations,
|
|
|
|
CommandReturnObject &result,
|
2017-09-15 04:22:49 +08:00
|
|
|
BreakpointIDList *valid_ids,
|
2019-10-31 06:26:19 +08:00
|
|
|
BreakpointName::Permissions::PermissionKinds purpose);
|
2010-06-09 00:52:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
2020-02-18 07:57:45 +08:00
|
|
|
#endif // LLDB_SOURCE_COMMANDS_COMMANDOBJECTBREAKPOINT_H
|