Go to the documentation of this file.
20 : m_break_id(bp_id), m_location_id(loc_id) {}
45 s->
Printf(
"%p BreakpointID:",
static_cast<void *
>(
this));
62 s->
Printf(
"%i.%i", bp_id, loc_id);
65 llvm::Optional<BreakpointID>
74 if (input.consumeInteger(0, bp_id))
78 if (input.consume_front(
".")) {
79 if (input.consumeInteger(0, loc_id))
94 error.SetErrorString(
"Empty breakpoint names are not allowed");
99 if (!isalpha(str[0]) && str[0] !=
'_')
101 error.SetErrorStringWithFormat(
"Breakpoint names must start with a "
102 "character or underscore: %s",
108 if (str.find_first_of(
".- ") != llvm::StringRef::npos) {
109 error.SetErrorStringWithFormat(
"Breakpoint names cannot contain "
110 "'.' or '-' or spaces: \"%s\"",
static bool IsRangeIdentifier(llvm::StringRef str)
lldb::break_id_t m_break_id
lldb::break_id_t m_location_id
static llvm::raw_ostream & error(Stream &strm)
BreakpointID(lldb::break_id_t bp_id=LLDB_INVALID_BREAK_ID, lldb::break_id_t loc_id=LLDB_INVALID_BREAK_ID)
void GetDescription(Stream *s, lldb::DescriptionLevel level)
static llvm::ArrayRef< llvm::StringRef > GetRangeSpecifiers()
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 llvm::Optional< BreakpointID > ParseCanonicalReference(llvm::StringRef input)
Takes an input string containing the description of a breakpoint or breakpoint and location and retur...
static bool StringIsBreakpointName(llvm::StringRef str, Status &error)
Takes an input string and checks to see whether it is a breakpoint name.
static llvm::StringRef g_range_specifiers[]
#define LLDB_INVALID_BREAK_ID
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
@ eDescriptionLevelVerbose
static bool IsValidIDExpression(llvm::StringRef str)
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.