llvm-project/lldb/source
Dave Lee 3a677b29a3 [lldb] Add deref support to libc++ unique_ptr synthetic
Add frame variable dereference suppport to libc++ `std::unique_ptr`.

This change allows for commands like `v *thing_up` and `v thing_up->m_id`. These commands now work the same way they would with raw pointers, and as they would with expression. This is done by adding an unaccounted for child member named `$$dereference$$`.

Without this change, the command would have to be written as `v *thing_up.__value_` or v thing_up.__value_->m_id` which exposes internal structure and is more clumsy to type.

Additionally, the existing tests were updated. See also https://reviews.llvm.org/D97165 which added deref support for `std::shared_ptr`.

Differential Revision: https://reviews.llvm.org/D97524
2021-02-26 07:39:01 -08:00
..
API [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Breakpoint Reland "[lldb] Make CommandInterpreter's execution context the same as debugger's one" 2021-02-08 15:09:09 +03:00
Commands [lldb/Core] Change large function threshold variable into a setting. 2021-02-25 22:35:04 +01:00
Core [lldb/Core] Change large function threshold variable into a setting. 2021-02-25 22:35:04 +01:00
DataFormatters [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Expression [lldb] Support debugging utility functions 2021-02-24 11:36:01 -08:00
Host [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Initialization [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Interpreter [lldb] Prevent double new lines behind errors/warning/messages from LLDB commands 2021-02-24 14:42:01 +01:00
Plugins [lldb] Add deref support to libc++ unique_ptr synthetic 2021-02-26 07:39:01 -08:00
Symbol [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Target [lldb] Support debugging utility functions 2021-02-24 11:36:01 -08:00
Utility [lldb] Check that files exists before handing them off to FileCollector 2021-02-18 16:16:15 -08:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00