public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  gsoc-kayral-python: Fix breakpoint traversing.
@ 2009-08-16 18:07 kayral
  0 siblings, 0 replies; only message in thread
From: kayral @ 2009-08-16 18:07 UTC (permalink / raw)
  To: archer-commits

The branch, gsoc-kayral-python has been updated
       via  ab4198a34af3f7d464f78715af7867d600df0b7e (commit)
      from  d2858b476c1d610e900c608ad6294eb715c0c984 (commit)

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

- Log -----------------------------------------------------------------
commit ab4198a34af3f7d464f78715af7867d600df0b7e
Author: oguz <oguz@pardus.(none)>
Date:   Sun Aug 16 21:06:25 2009 +0300

    Fix breakpoint traversing.

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

Summary of changes:
 gdb/python/python-breakpoint.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/python/python-breakpoint.c b/gdb/python/python-breakpoint.c
index ffbf279..33bb4f8 100644
--- a/gdb/python/python-breakpoint.c
+++ b/gdb/python/python-breakpoint.c
@@ -443,16 +443,21 @@ bppy_new (PyTypeObject *subtype, PyObject *args, PyObject *kwargs)
 breakpoint_object *
 gdbpy_breakpoint_from_bpstats (struct bpstats *bs)
 {
-  int i;
+  int i, out = 0;
   breakpoint_object *breakpoint = NULL;
 
   if (bppy_live == 0)
     return NULL;
 
-  for (i = 1; i <= bppy_live; i++)
+  for (i = 0; out < bppy_live; i++)
     {
+      if (! bppy_breakpoints[i])
+	continue;
+
       if (bs->breakpoint_at == bppy_breakpoints[i]->bp->loc)
 	breakpoint = bppy_breakpoints[i];
+
+      ++out;
     }
 
   return breakpoint;


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


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

only message in thread, other threads:[~2009-08-16 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 18:07 [SCM] gsoc-kayral-python: Fix breakpoint traversing kayral

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).