Skip to content

Commit 0566f23

Browse files
committed
[Utils] Fix gdb pretty printers to work with Python 3.
Reiterate D23202 for container printers added after the change landed. Differential Revision: https://reviews.llvm.org/D46578 llvm-svn: 336580
1 parent 3dbde8a commit 0566f23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/gdb-scripts/prettyprinters.py

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def next(self):
102102
def __init__(self, val):
103103
self.val = val
104104

105+
__next__ = next
106+
105107
def children(self):
106108
data = self.val['Data']
107109
return self._iterator(data, data + self.val['Length'])
@@ -198,6 +200,8 @@ def next(self):
198200
self.first = False
199201
return 'x', v
200202

203+
__next__ = next
204+
201205
def __init__(self, val):
202206
self.val = val
203207

0 commit comments

Comments
 (0)