[PATCH v2 3/3] Port libstdc++ pretty-printers to Python 2 + Python 3

Samuel Bronson naesten@gmail.com
Fri Jul 11 03:22:00 GMT 2014

Loosely based on Mathias Klose' earlier patch

Tested with:

$ make check-target-libstdc++-v3 RUNTESTFLAGS='--directory libstdc++-prettyprinters'


	PR libstdc++/58962
	* python/libstdcxx/v6/printers.py: Port to Python 2+3
	  (imap): New compat function.
	  (izip): Likewise.
	  (Iterator): New mixin to allow writing iterators in Python 3 style
	  regardless of which version we're running on.
	  [Python3] (long) New compat alias for "int".
	* testsuite/lib/gdb-test.exp: Port to Python 2+3 (print syntax)

Signed-off-by: Mathias Klose <doko@ubuntu.com>
Signed-off-by: Samuel Bronson <naesten@gmail.com>
 libstdc++-v3/python/libstdcxx/v6/printers.py | 110 +++++++++++++++++++--------
 libstdc++-v3/testsuite/lib/gdb-test.exp      |   4 +-
 2 files changed, 79 insertions(+), 35 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0003-Port-libstdc-pretty-printers-to-Python-2-Python-3.patch
Type: text/x-patch
Size: 10971 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140711/a6a68c6e/attachment.bin>

More information about the Gdb-patches mailing list