llvm/lldb/source/Breakpoint/BreakpointIDList.cpp

//===-- BreakpointIDList.cpp ----------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "lldb/lldb-enumerations.h"
#include "lldb/Breakpoint/BreakpointIDList.h"

#include "lldb/Breakpoint/Breakpoint.h"
#include "lldb/Breakpoint/BreakpointLocation.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/StreamString.h"

#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"

usingnamespacelldb;
usingnamespacelldb_private;

// class BreakpointIDList

BreakpointIDList::BreakpointIDList() :{}

BreakpointIDList::~BreakpointIDList() = default;

size_t BreakpointIDList::GetSize() const {}

BreakpointID BreakpointIDList::GetBreakpointIDAtIndex(size_t index) const {}

bool BreakpointIDList::RemoveBreakpointIDAtIndex(size_t index) {}

void BreakpointIDList::Clear() {}

bool BreakpointIDList::AddBreakpointID(BreakpointID bp_id) {}

bool BreakpointIDList::Contains(BreakpointID bp_id) const {}

//  This function takes OLD_ARGS, which is usually the result of breaking the
//  command string arguments into
//  an array of space-separated strings, and searches through the arguments for
//  any breakpoint ID range specifiers.
//  Any string in the array that is not part of an ID range specifier is copied
//  directly into NEW_ARGS.  If any
//  ID range specifiers are found, the range is interpreted and a list of
//  canonical breakpoint IDs corresponding to
//  all the current breakpoints and locations in the range are added to
//  NEW_ARGS.  When this function is done,
//  NEW_ARGS should be a copy of OLD_ARGS, with and ID range specifiers replaced
//  by the members of the range.

llvm::Error BreakpointIDList::FindAndReplaceIDRanges(
    Args &old_args, Target *target, bool allow_locations,
    BreakpointName::Permissions ::PermissionKinds purpose, Args &new_args) {}

std::pair<llvm::StringRef, llvm::StringRef>
BreakpointIDList::SplitIDRangeExpression(llvm::StringRef in_string) {}