From dc2c5eaaa43e4a6f88855848cbc0910af8a8256d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 6 Feb 2017 22:22:24 +0000 Subject: [PATCH] Make gdb ArrayIterator python 3 compatible --- gdb/kakoune.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/kakoune.py b/gdb/kakoune.py index 75ab6897..c3b4b034 100644 --- a/gdb/kakoune.py +++ b/gdb/kakoune.py @@ -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"""