Make gdb ArrayIterator python 3 compatible
This commit is contained in:
parent
45b145f540
commit
dc2c5eaaa4
|
@ -18,6 +18,9 @@ class ArrayIterator:
|
||||||
self.index = self.index + 1
|
self.index = self.index + 1
|
||||||
return ('[%d]' % index, (self.data + index).dereference())
|
return ('[%d]' % index, (self.data + index).dereference())
|
||||||
|
|
||||||
|
def __next__(self):
|
||||||
|
return self.next()
|
||||||
|
|
||||||
|
|
||||||
class ArrayView:
|
class ArrayView:
|
||||||
"""Print a ArrayView"""
|
"""Print a ArrayView"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user