hanchenye-llvm-project/lldb
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
..
cmake Enable lldb-server on Windows 2019-08-13 23:50:54 +00:00
docs [Docs] Fix (incorrect) code highlighting 2019-08-07 23:12:40 +00:00
examples [Symbolication] Remove some dead code. Nothing exciting. 2019-07-29 21:25:51 +00:00
include/lldb [DWARF} Use LLVM's debug line parser in LLDB. 2019-08-13 19:51:51 +00:00
lit Minidump/Windows: Fix module lookup 2019-08-09 09:10:50 +00:00
packages/Python/lldbsuite [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
resources
scripts [lldb] Remove Xcode project legacy 2019-07-24 09:20:14 +00:00
source [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
test [dotest] Remove multiprocessing 2019-07-30 16:42:47 +00:00
third_party/Python/module Initial support for native debugging of x86/x64 Windows processes 2019-08-13 22:18:01 +00:00
tools Enable lldb-server on Windows 2019-08-13 23:50:54 +00:00
unittests Initial support for native debugging of x86/x64 Windows processes 2019-08-13 22:18:01 +00:00
utils [TableGen] Move helpers into LLDBTableGenUtils. 2019-07-31 00:47:00 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] Remove check for the readline target. 2019-08-05 23:54:13 +00:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py