Display the pointer value in the libstdc++ unique_ptr summary
authorPavel Labath <labath@google.com>
Wed, 9 Nov 2016 10:42:29 +0000 (10:42 +0000)
committerPavel Labath <labath@google.com>
Wed, 9 Nov 2016 10:42:29 +0000 (10:42 +0000)
commit833e3d109bb7709f627ebc6ed7eb2b7dcd593abe
treeea05df27bddf8bc526f271783a6e08c53b195e1a
parent175388c00d0a39838a6d61c54ca6256b34e37dab
Display the pointer value in the libstdc++ unique_ptr summary

Summary:
r284830 added a summary provider for unique_ptr in libstdc++, whose value printed
the value of the pointee. This is a bit unintuitive as it becomes unobvious that
the value actually is a pointer, and we lose the way to actually obtain the
pointer value.

Change that to print the pointer value instead. The pointee value can still be
obtained through the synthetic children.

Reviewers: tberghammer, granata.enrico

Subscribers: lldb-commits

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

llvm-svn: 286355
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/unique_ptr/TestDataFormatterStdUniquePtr.py
lldb/source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp