]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix compatibility support in unique_ptr pretty printer
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Aug 2020 17:44:06 +0000 (18:44 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 23 Apr 2021 09:44:04 +0000 (11:44 +0200)
commitc44d03afd63c8f537e053d00289ac3f517e1d43b
treef2f445d0d74d998777850b405ffe2a99ed0af278
parenta3ae177e245fcaba5390a87481414abc3c3de28d
libstdc++: Fix compatibility support in unique_ptr pretty printer

The support for the old std::unique_ptr implementation was failing,
because it tried to work on a typedef instead of the underlying type.
The test supposed to verify the support worked wasn't using a typedef,
so didn't notice the problem.

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
Use gdb.Type.strip_typedefs().
* testsuite/libstdc++-prettyprinters/compat.cc: Use a typedef in
the emulated old type.

(cherry picked from commit ed11f7e84bcae89f486f5023e566726a7faa7dd4)
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/compat.cc
This page took 0.080735 seconds and 6 git commands to generate.