diff --git a/lldb/include/lldb/API/SBError.h b/lldb/include/lldb/API/SBError.h index b34014aecc441..30214e37c8e5c 100644 --- a/lldb/include/lldb/API/SBError.h +++ b/lldb/include/lldb/API/SBError.h @@ -27,6 +27,10 @@ class LLDB_API SBError { const SBError &operator=(const lldb::SBError &rhs); + /// Get the error string as a NULL terminated UTF8 c-string. + /// + /// This SBError object owns the returned string and this object must be kept + /// around long enough to use the returned string. const char *GetCString() const; void Clear();