public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-pmuldoon-python-backtrace: Add Python Frame-like iterator.
@ 2012-06-14 10:24 pmuldoon
  0 siblings, 0 replies; only message in thread
From: pmuldoon @ 2012-06-14 10:24 UTC (permalink / raw)
  To: archer-commits

The branch, archer-pmuldoon-python-backtrace has been updated
       via  edcdfba5b00306ef19e7da9a23665cb8e0a88bc6 (commit)
      from  14212616ff6b4ac50b9396946dd76bc7ae5acf7c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit edcdfba5b00306ef19e7da9a23665cb8e0a88bc6
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Jun 14 11:23:37 2012 +0100

    Add Python Frame-like iterator.

-----------------------------------------------------------------------

Summary of changes:
 gdb/python/lib/gdb/FrameIterator.py |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 gdb/python/lib/gdb/FrameIterator.py

First 500 lines of diff:
diff --git a/gdb/python/lib/gdb/FrameIterator.py b/gdb/python/lib/gdb/FrameIterator.py
new file mode 100644
index 0000000..4f14e8a
--- /dev/null
+++ b/gdb/python/lib/gdb/FrameIterator.py
@@ -0,0 +1,20 @@
+class FrameIterator(object):
+    """A frame iterator.  Iterates over gdb.Frames or objects that
+    conform to that interface."""
+
+    def __init__ (self, frame_obj):
+        "Initialize a FrameIterator.  FRAME_OBJ is the starting
+        frame."
+
+        super(FrameIterator, self).__init__()
+        self.frame = frame
+
+    def __iter__ (self):
+        return self
+
+    def next (self):
+        result = self.frame
+        if result is None:
+            raise StopIteration
+        self.frame = result.older ()
+        return result


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-14 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14 10:24 [SCM] archer-pmuldoon-python-backtrace: Add Python Frame-like iterator pmuldoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).