r243688 - in /trunk/libstdc++-v3: ChangeLog pyt...

redi@gcc.gnu.org redi@gcc.gnu.org
Thu Dec 15 12:45:00 GMT 2016


Author: redi
Date: Thu Dec 15 12:45:42 2016
New Revision: 243688

URL: https://gcc.gnu.org/viewcvs?rev=243688&root=gcc&view=rev
Log:
Add GDB XMethods for shared_ptr and unique_ptr<T[]>

	* python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__init__): Use
	correct element type for unique_ptr<T[]>.
	(UniquePtrGetWorker._supports, UniquePtrDerefWorker._supports): New
	functions to disable unsupported operators for unique_ptr<T[]>.
	(UniquePtrSubscriptWorker): New worker for operator[].
	(UniquePtrMethodsMatcher.__init__): Register UniquePtrSubscriptWorker.
	(UniquePtrMethodsMatcher.match): Call _supports on the chosen worker.
	(SharedPtrGetWorker, SharedPtrDerefWorker, SharedPtrSubscriptWorker)
	(SharedPtrUseCountWorker, SharedPtrUniqueWorker): New workers.
	(SharedPtrMethodsMatcher): New matcher for shared_ptr.
	(register_libstdcxx_xmethods): Register SharedPtrMethodsMatcher.
	* testsuite/libstdc++-xmethods/unique_ptr.cc: Test arrays.
	* testsuite/libstdc++-xmethods/shared_ptr.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/libstdc++-xmethods/shared_ptr.cc
      - copied, changed from r243687, trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/python/libstdcxx/v6/xmethods.py
    trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc



More information about the Libstdc++-cvs mailing list