[PATCH] D46578: Fix gdb pretty printers to work with Python 3.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 9 11:56:53 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336580: [Utils] Fix gdb pretty printers to work with Python 3. (authored by pfaffe, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46578?vs=145671&id=154666#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46578
Files:
llvm/trunk/utils/gdb-scripts/prettyprinters.py
Index: llvm/trunk/utils/gdb-scripts/prettyprinters.py
===================================================================
--- llvm/trunk/utils/gdb-scripts/prettyprinters.py
+++ llvm/trunk/utils/gdb-scripts/prettyprinters.py
@@ -102,6 +102,8 @@
def __init__(self, val):
self.val = val
+ __next__ = next
+
def children(self):
data = self.val['Data']
return self._iterator(data, data + self.val['Length'])
@@ -198,6 +200,8 @@
self.first = False
return 'x', v
+ __next__ = next
+
def __init__(self, val):
self.val = val
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46578.154666.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180709/5c0f5388/attachment.bin>
More information about the llvm-commits
mailing list