aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/python
diff options
context:
space:
mode:
authorMatthias Klose <doko@gcc.gnu.org>2010-07-02 10:55:51 +0000
committerMatthias Klose <doko@gcc.gnu.org>2010-07-02 10:55:51 +0000
commitd1f736a2d7b21c9fcc19355e8dcd82c99051c107 (patch)
treedcf003d313cf037f336017d93a50876e44a12baa /libstdc++-v3/python
parent1e0859a29e0b7ca2f70e156aafdac7b4db30663b (diff)
downloadgcc-d1f736a2d7b21c9fcc19355e8dcd82c99051c107.zip
gcc-d1f736a2d7b21c9fcc19355e8dcd82c99051c107.tar.gz
gcc-d1f736a2d7b21c9fcc19355e8dcd82c99051c107.tar.bz2
- Revert two chunks from libstdc++-v3/python/libstdcxx/v6/printers.py,
left over from testing. From-SVN: r161702
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 0533dea..fe278d6 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):