Make gdb ArrayIterator python 3 compatible

This commit is contained in:
Maxime Coste 2017-02-06 22:22:24 +00:00
parent 45b145f540
commit dc2c5eaaa4

View File

@ -18,6 +18,9 @@ class ArrayIterator:
self.index = self.index + 1
return ('[%d]' % index, (self.data + index).dereference())
def __next__(self):
return self.next()
class ArrayView:
"""Print a ArrayView"""