33 Stream &strm, uint32_t dump_mask) {
60 if (value.size() > 0) {
71 llvm::StringRef last_piece;
72 llvm::StringRef left_of_last_piece;
74 std::tie(left_of_last_piece, last_piece) = value.rsplit(
':');
75 if (last_piece.empty()) {
76 error.SetErrorStringWithFormat(
"Line specifier must include file and "
87 llvm::StringRef file_name;
88 llvm::StringRef middle_piece;
90 std::tie(file_name, middle_piece) = left_of_last_piece.rsplit(
':');
91 if (middle_piece.empty() ||
96 file_name = left_of_last_piece;
98 error.SetErrorStringWithFormat(
"Bad line number value '%s' in: '%s'",
99 last_piece.str().c_str(),
100 value.str().c_str());
107 error.SetErrorStringWithFormat(
"Bad column value '%s' in: '%s'",
108 last_piece.str().c_str(),
109 value.str().c_str());
118 error.SetErrorString(
"invalid value string");
static llvm::raw_ostream & error(Stream &strm)
static bool InvokeCommonCompletionCallbacks(CommandInterpreter &interpreter, uint32_t completion_mask, lldb_private::CompletionRequest &request, SearchFilter *searcher)
"lldb/Utility/ArgCompletionRequest.h"
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void SetFile(llvm::StringRef path, Style style)
Change the file specified with a new path.
size_t GetPath(char *path, size_t max_path_length, bool denormalize=true) const
Extract the full path to the file.
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
uint32_t m_completion_mask
OptionValueFileColonLine()
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
void NotifyValueChanged()
virtual const char * GetTypeAsCString() const
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_LINE_NUMBER
#define LLDB_INVALID_COLUMN_NUMBER
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
@ eVarSetOperationReplace
@ eVarSetOperationInvalid
@ eVarSetOperationInsertBefore
@ eVarSetOperationInsertAfter