Does the patch below work? gdb's git commits are difficult to make
sense of but I found a clue in the comment at the bottom of the class
that the snipplet subclasses:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/python/lib/gdb/FrameIterator.py;h=c99a91e556c;hb=HEAD
(Summary: next() and __next__() are required to appease both python 2
and python 3)
I switched the names around to match the calling convention in that
file but it can probably be done the other way too, with next()
calling __next__(), which might be cleaner.
Cheers,
Andy
--- /usr/share/glib-2.0/gdb/gobject.py.old 2014-06-11
20:12:32.037000000 +0100
+++ /usr/share/glib-2.0/gdb/gobject.py 2014-06-11
20:38:29.108000000 +0100
@@ -238,7 +238,7 @@
return i
return -1
- def __next__ (self):
+ def next (self):
# Ensure we have enough frames for a full signal emission
self.fill()
@@ -274,6 +274,9 @@
return self.queue.pop(0)
+ def __next__ (self):
+ return self.next()
+
class GFrameFilter(object):
name = 'glib'
enabled = True
That seems to work, thanks!
Sandro
--
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test