diff options
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/Makefile.in | 2 | ||||
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/python/Makefile.in b/libstdc++-v3/python/Makefile.in index 35ee1e910c6..d42eccac31e 100644 --- a/libstdc++-v3/python/Makefile.in +++ b/libstdc++-v3/python/Makefile.in @@ -55,6 +55,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/enable.m4 \ $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \ $(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/crossconfig.m4 \ $(top_srcdir)/linkage.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/../config/gc++filt.m4 \ $(top_srcdir)/../config/tls.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) @@ -123,6 +124,7 @@ CTIME_CC = @CTIME_CC@ CTIME_H = @CTIME_H@ CXX = @CXX@ CXXCPP = @CXXCPP@ +CXXFILT = @CXXFILT@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ C_INCLUDE_DIR = @C_INCLUDE_DIR@ diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 0533deaf158..fe278d6dfd7 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -#import gdb +import gdb import itertools import re @@ -77,8 +77,7 @@ class StdListPrinter: elif self.typename == "std::__debug::list": nodetype = gdb.lookup_type('std::__norm::_List_node<%s>' % itype).pointer() else: - #raise ValueError, "Cannot cast list node for list printer." - raise "Cannot cast list node for list printer." + raise ValueError, "Cannot cast list node for list printer." return self._iterator(nodetype, self.val['_M_impl']['_M_node']) def to_string(self): |