* gdb.python/py-prettyprint.py (_iterator): Remove exception_flag
authorPaul Koning <pkoning@equallogic.com>
Tue, 11 Dec 2012 20:54:52 +0000 (20:54 +0000)
committerPaul Koning <pkoning@equallogic.com>
Tue, 11 Dec 2012 20:54:52 +0000 (20:54 +0000)
commit2960a434c3403a088a3491b12cd3e79cbd641966
tree196686a2e8a036df4fd9725050a773af16b60b67
parent8d2cc612e5f29d4e766e621e07c1ac90f48bee8c
* gdb.python/py-prettyprint.py (_iterator): Remove exception_flag
exception.
(_iterator_except): New function.
(ArrayPrinter): Use _iterator function instead of local _iterator
class for Python 3 compatibility.
(NoStringContainerPrinter): Use _iterator_except instead of
_iterator.
* gdb.python/py-typeprint.exp: Use exec(open(...).read()) instead of
execfile for Python 3 compatibility.
* gdb.python/python.exp: Handle Python 2.4 exception traceback
format in error_prompt test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-prettyprint.py
gdb/testsuite/gdb.python/py-typeprint.exp
gdb/testsuite/gdb.python/python.exp