From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26682 invoked by alias); 28 Dec 2010 19:12:32 -0000 Received: (qmail 26674 invoked by uid 22791); 28 Dec 2010 19:12:31 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Dec 2010 19:12:27 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LE500500JYVFP00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Tue, 28 Dec 2010 21:11:44 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.219.104]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LE50050EJZJ7B70@a-mtaout23.012.net.il>; Tue, 28 Dec 2010 21:11:44 +0200 (IST) Date: Tue, 28 Dec 2010 20:15:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] unexpected multiple location for breakpoint In-reply-to: <20101228112546.GB2436@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83tyhxbthv.fsf@gnu.org> References: <1290474625-1582-1-git-send-email-brobecker@adacore.com> <20101126172942.GK2634@adacore.com> <20101127183532.GA10136@caradoc.them.org> <20101210122337.GC2596@adacore.com> <20101228112546.GB2436@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00522.txt.bz2 > Date: Tue, 28 Dec 2010 15:25:46 +0400 > From: Joel Brobecker > > As a user, we're expecting the debugger to stop on line 53 at every > iteration. But because we only break on the first instance of line 53, > and because that first instance is outside the actual loop, we end up > stopping only once. > > (there are some lexical blocks in the assembly code I'm looking at, > but nothing significant to line 53, I believe). > > According to you, bug or feature? Definitely a bug. Whether it can be fixed in some reasonable way, is another question. > If this is a bug, then the only solution I can think of is inserting > a breakpoint at *every* instances of line 53, regardless of > lexical-block relationships. When would that be worse than what we have now?