[PATCH] D23202: Fix gdb pretty printers to work with Python 3.
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 5 06:37:48 PDT 2016
ikudrin created this revision.
ikudrin added a reviewer: dblaikie.
ikudrin added a subscriber: llvm-commits.
https://reviews.llvm.org/D23202
Files:
utils/gdb-scripts/prettyprinters.py
Index: utils/gdb-scripts/prettyprinters.py
===================================================================
--- utils/gdb-scripts/prettyprinters.py
+++ utils/gdb-scripts/prettyprinters.py
@@ -46,6 +46,8 @@
self.cur = self.cur + 1
return '[%d]' % count, cur.dereference()
+ __next__ = next
+
def __init__(self, val):
self.val = val
@@ -85,6 +87,8 @@
cur = self.cur
self.cur = self.cur + 1
return '[%d]' % count, cur.dereference()
+
+ __next__ = next
def __init__(self, val):
self.val = val
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23202.66939.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160805/043a00e6/attachment.bin>
More information about the llvm-commits
mailing list