Go to the documentation of this file.
19 llvm::ColorMode::Enable)
24 return llvm::WithColor(strm.
AsRawOstream(), llvm::HighlightColor::Warning,
25 llvm::ColorMode::Enable)
30 bool add_newline =
false;
34 strm.
Write(s.c_str(), s.size());
36 const char last_char = *s.rbegin();
37 add_newline = last_char !=
'\n' && last_char !=
'\r';
43 CommandReturnObject::CommandReturnObject(
bool colors)
44 : m_out_stream(colors), m_err_stream(colors) {}
52 va_start(args, format);
68 va_start(args, format);
80 va_start(args, format);
89 if (in_string.empty())
95 if (in_string.empty())
102 if (in_string.empty())
108 const char *fallback_error_cstr) {
123 assert(!in_string.empty() &&
"Expected a non-empty error message");
141 lldb::StreamSP stream_sp;
const char * toString(AppleArm64ExceptionClass EC)
lldb::ReturnStatus GetStatus() const
@ eReturnStatusSuccessContinuingResult
void SetError(const Status &error, const char *fallback_error_cstr=nullptr)
lldb::ReturnStatus m_status
void AppendRawError(llvm::StringRef in_string)
llvm::StringRef GetString() const
bool GetSuppressImmediateOutput() const
static llvm::raw_ostream & error(Stream &strm)
bool GetInteractive() const
ReturnStatus
Command Return Status Types.
void SetStatus(lldb::ReturnStatus status)
bool m_suppress_immediate_output
Stream & GetOutputStream()
static void DumpStringToStreamWithNewline(Stream &strm, const std::string &s)
void SetSuppressImmediateOutput(bool b)
lldb::StreamSP GetStreamAtIndex(uint32_t idx)
size_t size_t PrintfVarArg(const char *format, va_list args)
bool GetDidChangeProcessState() const
Stream & GetErrorStream()
string(SUBSTRING ${p} 10 -1 pStripped) if($
bool m_interactive
If true, then the input handle from the debugger will be hooked up.
static llvm::raw_ostream & warning(Stream &strm)
@ eReturnStatusSuccessFinishResult
void void AppendWarning(llvm::StringRef in_string)
size_t EOL()
Output and End of Line character to the stream.
void AppendMessageWithFormat(const char *format,...) __attribute__((format(printf
llvm::raw_ostream & AsRawOstream()
Returns a raw_ostream that forwards the data to this Stream object.
void SetInteractive(bool b)
void AppendWarningWithFormat(const char *format,...) __attribute__((format(printf
void SetDidChangeProcessState(bool b)
void AppendErrorWithFormat(const char *format,...) __attribute__((format(printf
A class that represents a running process on the host machine.
bool m_did_change_process_state
size_t Write(const void *src, size_t src_len)
Output character bytes to the stream.
void void AppendError(llvm::StringRef in_string)
void AppendMessage(llvm::StringRef in_string)