Don't produce a dynamic value if there was an error creating it.
authorJim Ingham <jingham@apple.com>
Fri, 10 Mar 2023 18:08:26 +0000 (10:08 -0800)
committerJim Ingham <jingham@apple.com>
Fri, 10 Mar 2023 18:21:50 +0000 (10:21 -0800)
commite1462d14b1e4be329a95bdd08181b97a7a3ad6e6
tree7a7d9b4e420415da361f575e14bfb45cec5d5007
parent79f6b812356880f64975998fda72d06d46735ad6
Don't produce a dynamic value if there was an error creating it.

We used to make a dynamic value that "pretended to be its parent"
but that's hard for some of the more complex ValueObject types, and
it's better in this case just to return no dynamic value.

Differential Revision: https://reviews.llvm.org/D145629
lldb/source/Core/ValueObject.cpp
lldb/source/Core/ValueObjectConstResult.cpp
lldb/source/Core/ValueObjectDynamicValue.cpp
lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
lldb/test/API/python_api/value/addr_of_void_star/Makefile [new file with mode: 0644]
lldb/test/API/python_api/value/addr_of_void_star/TestValueAPIAddressOfVoidStar.py [new file with mode: 0644]
lldb/test/API/python_api/value/addr_of_void_star/main.c [new file with mode: 0644]