llvm-project/lldb/source/Plugins/Language
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
..
CPlusPlus [lldb] Add deref support to libc++ unique_ptr synthetic 2021-02-26 07:39:01 -08:00
ClangCommon lldb: Migrate to MemoryBufferRef for createFileID (after 51d1d585e5) 2020-10-20 13:52:39 -04:00
ObjC [LLDB] Fix how ObjCBOOLSummaryProvider deals with BOOL 2021-01-22 10:05:24 -08:00
ObjCPlusPlus [lldb/DataFormatters] Display null C++ pointers as nullptr 2020-11-12 15:24:06 -08:00
CMakeLists.txt Remove OCaml debugger plugin 2018-11-05 19:34:03 +00:00