PR libstdc++/90520 adjust Xmethod for recent unique_ptr changes
commit1a0a374429382d49830cf5759dcb6c3e82011908
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 May 2019 23:08:00 +0000 (18 00:08 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 17 May 2019 23:08:00 +0000 (18 00:08 +0100)
tree51602658be5e318b64c3808768457114ecacf329
parentb5ba95ba974d895b9de195494d947fa7effc6e48
PR libstdc++/90520 adjust Xmethod for recent unique_ptr changes

PR libstdc++/90520
* python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
Raise exception if unique_ptr tuple member has unknown structure.
* python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
Adjust worker to support new __uniq_ptr_data base class. Do not
assume field called _M_head_impl is the first tuple element.

From-SVN: r271363
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/python/libstdcxx/v6/xmethods.py