gdb webkit.py: Fix iterator error in Python3
https://bugs.webkit.org/show_bug.cgi?id=202926
Reviewed by Jonathan Bedard.
Some distros use Python3 for gdb, so the script needs to be compatible with both versions for it to work.
* gdb/webkit.py:
(WTFVectorPrinter.Iterator.__next__):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index 2d530f2..8da23ad 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,15 @@
+2019-10-15 Alicia Boya García <aboya@igalia.com>
+
+ gdb webkit.py: Fix iterator error in Python3
+ https://bugs.webkit.org/show_bug.cgi?id=202926
+
+ Reviewed by Jonathan Bedard.
+
+ Some distros use Python3 for gdb, so the script needs to be compatible with both versions for it to work.
+
+ * gdb/webkit.py:
+ (WTFVectorPrinter.Iterator.__next__):
+
2019-10-14 Zhifei FANG <zhifei_fang@apple.com>
results.webkit.org: TypeError when evaluating empty commits
diff --git a/Tools/gdb/webkit.py b/Tools/gdb/webkit.py
index 3ad5d4c..14725d8 100644
--- a/Tools/gdb/webkit.py
+++ b/Tools/gdb/webkit.py
@@ -277,6 +277,9 @@
self.item += 1
return ('[%d]' % count, element)
+ def __next__(self):
+ return self.next()
+
def __init__(self, val):
self.val = val