]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/90520 adjust Xmethod for recent unique_ptr changes
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 23:08:00 +0000 (23:08 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 23:08:00 +0000 (23:08 +0000)
commit83454be655bea974308b6dee15341cadd08290f9
tree51602658be5e318b64c3808768457114ecacf329
parent0325d276aca6c8a1239996007753f47ee6832b76
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271363 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/python/libstdcxx/v6/xmethods.py