33 Stream &strm, uint32_t dump_mask) {
41 strm <<
'"' <<
m_file_spec.GetPath().c_str() <<
'"';
53 stream <<
'"' <<
m_file_spec.GetPath().c_str() <<
'"';
59 return llvm::json::Value(stream.
GetString());
73 if (value.size() > 0) {
84 llvm::StringRef last_piece;
85 llvm::StringRef left_of_last_piece;
87 std::tie(left_of_last_piece, last_piece) = value.rsplit(
':');
88 if (last_piece.empty()) {
90 "Line specifier must include file and "
101 llvm::StringRef file_name;
102 llvm::StringRef middle_piece;
104 std::tie(file_name, middle_piece) = left_of_last_piece.rsplit(
':');
105 if (middle_piece.empty() ||
110 file_name = left_of_last_piece;
113 "Bad line number value '%s' in: '%s'", last_piece.str().c_str(),
114 value.str().c_str());
122 "Bad column value '%s' in: '%s'", last_piece.str().c_str(),
123 value.str().c_str());
129 m_file_spec.SetFile(file_name, FileSpec::Style::native);
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 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
llvm::json::Value ToJSON(const ExecutionContext *exe_ctx) const override
OptionValueFileColonLine()
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
void NotifyValueChanged()
virtual const char * GetTypeAsCString() const
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
static Status FromErrorString(const char *str)
llvm::StringRef GetString() 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