From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7203 invoked by alias); 17 Feb 2006 19:33:10 -0000 Received: (qmail 7192 invoked by uid 22791); 17 Feb 2006 19:33:10 -0000 X-Spam-Check-By: sourceware.org Received: from gandalf.inter.net.il (HELO gandalf.inter.net.il) (192.114.186.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Feb 2006 19:33:10 +0000 Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id HXH01538; Fri, 17 Feb 2006 21:28:59 +0200 (IST) Received: from HOME-C4E4A596F7 (IGLD-80-230-152-98.inter.net.il [80.230.152.98]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id CSN96836 (AUTH halo1); Fri, 17 Feb 2006 21:28:56 +0200 (IST) Date: Fri, 17 Feb 2006 19:36:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus CC: gdb@sources.redhat.com In-reply-to: (message from Vladimir Prus on Fri, 17 Feb 2006 18:01:13 +0300) Subject: Re: MI: reporting of multiple breakpoints Reply-to: Eli Zaretskii References: 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/msg00194.txt.bz2 > From: Vladimir Prus > Date: Fri, 17 Feb 2006 18:01:13 +0300 > > It seems that for stop on multiple breakpoints, MI reports only one: > > (gdb) > -break-insert main > ^done,bkpt={number="1",type="breakpoint"..... > (gdb) > -break-insert main > ^done,bkpt={number="2",type="breakpoint"...... > (gdb) > -exec-run > ^running > (gdb) > *stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={...} > > Is this a bug, or by design? I think it's a bug. I don't see any reason not to report all the breakpoints. As Daniel says, this is not limited to MI. (You will see in "info breakpoints" that GDB does know that both breakpoints triggered, it just doesn't print them both.)