From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19529 invoked by alias); 17 Feb 2006 19:56:57 -0000 Received: (qmail 19521 invoked by uid 22791); 17 Feb 2006 19:56:56 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Feb 2006 19:56:54 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-152-98.inter.net.il [80.230.152.98]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DOW60426 (AUTH halo1); Fri, 17 Feb 2006 21:56:38 +0200 (IST) Date: Fri, 17 Feb 2006 19:59:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus , gdb@sources.redhat.com In-reply-to: <20060217194426.GA28988@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 17 Feb 2006 14:44:26 -0500) Subject: Re: MI: reporting of multiple breakpoints Reply-to: Eli Zaretskii References: <20060217153211.GA21402@nevyn.them.org> <20060217194426.GA28988@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00201.txt.bz2 > Date: Fri, 17 Feb 2006 14:44:26 -0500 > From: Daniel Jacobowitz > Cc: Vladimir Prus , gdb@sources.redhat.com > > There are two events in hardware, yes - but "GDB will always see these > two as separate events" is not accurate. Suppose we've got an > instruction at foo+0x10 that stores to a watched address and at > foo+0x16 that has a breakpoint set on it. The watchpoint will trigger, > stopping GDB at foo+0x16. At this point, we were stopped by the > watchpoint, but we'll never hit the breakpoint - if the user "continue"s, > GDB will politely step around the breakpoint. In effect, we've > hit the watchpoint and breakpoint simultaneously, and IMO it would > be appropriate to let the user know about both of them. Why do we step around the breakpoint? As long as we do that, the breakpoint never happened, and we don't need to announce it. If we _want_ to announce it, we should stop stepping around it, IMHO.