commit 3b04eb18e94cace91cfbc2cd80c0acd0bf7d7d86
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Aug 26 18:52:39 2014 +0100
* python/Makefile.am (nobase_python_DATA): Add xmethods.py.
* python/Makefile.in: Regenerate.
* python/hook.in: Load the xmethods.
@@ -33,6 +33,7 @@ all-local: gdb.py
nobase_python_DATA = \
libstdcxx/v6/printers.py \
+ libstdcxx/v6/xmethods.py \
libstdcxx/v6/__init__.py \
libstdcxx/__init__.py
@@ -316,6 +316,7 @@ AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
@ENABLE_PYTHONDIR_TRUE@pythondir = $(prefix)/$(python_mod_dir)
nobase_python_DATA = \
libstdcxx/v6/printers.py \
+ libstdcxx/v6/xmethods.py \
libstdcxx/v6/__init__.py \
libstdcxx/__init__.py
@@ -58,3 +58,8 @@ if gdb.current_objfile () is not None:
# Load the pretty-printers.
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (gdb.current_objfile ())
+
+if hasattr(gdb, 'xmethod'):
+ # Load the xmethods
+ from libstdcxx.v6.xmethods import register_libstdcxx_xmethods
+ register_libstdcxx_xmethods (gdb.current_objfile ())