hanchenye-llvm-project/lldb/source
Pavel Labath 72ef113d40 [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr
Summary:
It seems this was an unintended side-effect of D26698. AFAICT, these
functions did return an empty string before that patch, and the patch
contained code which attempted to ensure that, but those efforts were
negated by ConstString::AsCString, which by default returns a nullptr
even for empty strings.

This patch:
- fixes the GetOutput/Error methods to really return empty strings
- adds and explicit test for that
- removes a workaround in lldbtest.py, which was masking this problem
  from our other tests

Reviewers: jingham, clayborg

Subscribers: zturner, lldb-commits

Differential Revision: https://reviews.llvm.org/D65739

llvm-svn: 368806
2019-08-14 08:11:20 +00:00
..
API [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
Breakpoint [Symbol] Use llvm::Expected when getting TypeSystems 2019-07-30 22:12:34 +00:00
Commands [CommandObject] Remove unused function 2019-08-07 20:56:17 +00:00
Core Remove unused and undocumented data_offset parameter (NFC) 2019-08-08 19:22:32 +00:00
DataFormatters Revert "[CompilerType] Simplify the interface a bit more.." 2019-08-06 00:42:11 +00:00
Expression [CompilerType] Pass an ExecutionContextScope to GetTypeBitAlign. 2019-08-12 21:49:54 +00:00
Host Enable lldb-server on Windows 2019-08-13 23:50:54 +00:00
Initialization Various build fixes for lldb on MinGW 2019-08-06 18:20:43 +00:00
Interpreter Format OptionEnumValueElement (NFC) 2019-08-02 00:18:44 +00:00
Plugins [lldb] Reinstate original guard variable check 2019-08-14 05:52:33 +00:00
Symbol [DWARF} Use LLVM's debug line parser in LLDB. 2019-08-13 19:51:51 +00:00
Target [ExecutionContext] Return the target/process byte order. 2019-08-07 16:09:35 +00:00
Utility [lldb][NFC] Assert on invalid cursors positions when creating CompletionRequest 2019-08-09 14:32:50 +00:00
CMakeLists.txt [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00
lldb.cpp [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00