From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24935 invoked by alias); 16 Aug 2009 18:07:19 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 24907 invoked by uid 9824); 16 Aug 2009 18:07:15 -0000 Date: Sun, 16 Aug 2009 18:07:00 -0000 Message-ID: <20090816180715.24891.qmail@sourceware.org> From: kayral@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] gsoc-kayral-python: Fix breakpoint traversing. X-Git-Refname: refs/heads/gsoc-kayral-python X-Git-Reftype: branch X-Git-Oldrev: d2858b476c1d610e900c608ad6294eb715c0c984 X-Git-Newrev: ab4198a34af3f7d464f78715af7867d600df0b7e X-SW-Source: 2009-q3/txt/msg00116.txt.bz2 List-Id: 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 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.