diff options
author | Doug Evans <dje@google.com> | 2015-05-26 23:06:55 +0000 |
---|---|---|
committer | Doug Evans <devans@gcc.gnu.org> | 2015-05-26 23:06:55 +0000 |
commit | 419587a0bb9c22c0088e6fca5449af957db2c5bb (patch) | |
tree | 56f1102ebf225578799af23855f6725d2cdffad8 /libstdc++-v3/python | |
parent | afa5920a97b539b111a2f1593717ee7ef14f7bdb (diff) | |
download | gcc-419587a0bb9c22c0088e6fca5449af957db2c5bb.zip gcc-419587a0bb9c22c0088e6fca5449af957db2c5bb.tar.gz gcc-419587a0bb9c22c0088e6fca5449af957db2c5bb.tar.bz2 |
xmethods.py (UniquePtrMethodsMatcher): Add operator-> support.
* python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
operator-> support.
* testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
operator->.
From-SVN: r223723
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/xmethods.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py index 6db0e16..c85dd67 100644 --- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py +++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py @@ -584,6 +584,7 @@ class UniquePtrMethodsMatcher(gdb.xmethod.XMethodMatcher): matcher_name_prefix + 'unique_ptr') self._method_dict = { 'get': LibStdCxxXMethod('get', UniquePtrGetWorker), + 'operator->': LibStdCxxXMethod('operator->', UniquePtrGetWorker), 'operator*': LibStdCxxXMethod('operator*', UniquePtrDerefWorker), } self.methods = [self._method_dict[m] for m in self._method_dict] |