hanchenye-llvm-project/lldb
Greg Clayton 0d6f681292 Fix a crasher in StackFrame::GetValueForVariableExpressionPath()
There was a crash that would happen if an IDE would ask for a child of a shared pointer via any SB API call that ends up calling StackFrame::GetValueForVariableExpressionPath(). The previous code expects an error to be set describing why the synthetic child of a type was not able to be found, but we have some synthetic child providers that weren't setting the error and returning an empty value object shared pointer. This fixes that to ensure we don't lose our debug session by crashing, fully tests GetValueForVariableExpressionPath functionality, and ensures we don't crash on GetValueForVariableExpressionPath() in the future.

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

llvm-svn: 355850
2019-03-11 18:16:20 +00:00
..
cmake [build] Rename clang-headers to clang-resource-headers 2019-03-04 21:19:53 +00:00
docs Pass ConstString by value (NFC) 2019-03-06 21:22:25 +00:00
examples Bring Doxygen comment syntax in sync with LLVM coding style. 2019-03-11 17:09:29 +00:00
include/lldb Bring Doxygen comment syntax in sync with LLVM coding style. 2019-03-11 17:09:29 +00:00
lit Quiet command regex instructions during batch execution 2019-03-10 23:15:48 +00:00
lldb.xcodeproj When disassembling Aarch64 target and vendor Apple, set the cpu to 2019-03-07 03:16:45 +00:00
lldb.xcworkspace Remove accidentally commited file in xcshareddata 2019-02-05 23:35:01 +00:00
packages/Python/lldbsuite Fix a crasher in StackFrame::GetValueForVariableExpressionPath() 2019-03-11 18:16:20 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
source Fix a crasher in StackFrame::GetValueForVariableExpressionPath() 2019-03-11 18:16:20 +00:00
test [CMake] Make lldb-test-deps a dependency of check-lldb 2019-02-13 20:51:13 +00:00
third_party/Python/module [dotest] Consider unexpected passes as failures. 2018-12-20 20:44:23 +00:00
tools Bring Doxygen comment syntax in sync with LLVM coding style. 2019-03-11 17:09:29 +00:00
unittests Remove dependency edges from Host to Target/Core. 2019-03-08 20:56:10 +00:00
utils Use sys.executable in lldb-dotest 2019-02-15 07:41:17 +00:00
www Pass ConstString by value (NFC) 2019-03-06 21:22:25 +00:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt [cmake] Move LLDB_DISABLE_LIBEDIT handling code into a central place 2019-02-28 16:04:54 +00:00
CODE_OWNERS.txt
INSTALL.txt
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py