21 : m_break_id(bp_id), m_location_id(loc_id) {}
46 s->
Printf(
"%p BreakpointID:",
static_cast<void *
>(
this));
63 s->
Printf(
"%i.%i", bp_id, loc_id);
66std::optional<BreakpointID>
75 if (input.consumeInteger(0, bp_id))
79 if (input.consume_front(
".")) {
80 if (input.consumeInteger(0, loc_id))
95 error.SetErrorString(
"Empty breakpoint names are not allowed");
100 if (!isalpha(str[0]) && str[0] !=
'_')
102 error.SetErrorStringWithFormat(
"Breakpoint names must start with a "
103 "character or underscore: %s",
109 if (str.find_first_of(
".- ") != llvm::StringRef::npos) {
110 error.SetErrorStringWithFormat(
"Breakpoint names cannot contain "
111 "'.' or '-' or spaces: \"%s\"",
static llvm::StringRef g_range_specifiers[]
static llvm::raw_ostream & error(Stream &strm)
static std::optional< BreakpointID > ParseCanonicalReference(llvm::StringRef input)
Takes an input string containing the description of a breakpoint or breakpoint and location and retur...
BreakpointID(lldb::break_id_t bp_id=LLDB_INVALID_BREAK_ID, lldb::break_id_t loc_id=LLDB_INVALID_BREAK_ID)
static void GetCanonicalReference(Stream *s, lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
Takes a breakpoint ID and the breakpoint location id and returns a string containing the canonical de...
static bool IsValidIDExpression(llvm::StringRef str)
static bool IsRangeIdentifier(llvm::StringRef str)
void GetDescription(Stream *s, lldb::DescriptionLevel level)
static llvm::ArrayRef< llvm::StringRef > GetRangeSpecifiers()
lldb::break_id_t m_break_id
lldb::break_id_t m_location_id
static bool StringIsBreakpointName(llvm::StringRef str, Status &error)
Takes an input string and checks to see whether it is a breakpoint name.
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
#define LLDB_INVALID_BREAK_ID
A class that represents a running process on the host machine.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelVerbose