From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12363 invoked by alias); 3 Feb 2009 11:49:01 -0000 Received: (qmail 12351 invoked by uid 22791); 3 Feb 2009 11:48:59 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Feb 2009 11:48:55 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n13BsmjT011933; Tue, 3 Feb 2009 05:54:48 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Feb 2009 05:48:50 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: MI *stopped versus silent breakpoint Date: Tue, 03 Feb 2009 11:49:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BF53@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA06CB0F19@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: "teawater" Cc: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00031.txt.bz2 Hi, if you look at your example output below, there is two *stopped events and two *running events, although you only issued one reverse-finish. =46rom a user perspective, there should be one *stopped and one *running. So, for the frontend, multiple events are not exact; but the frontend can be made smart enough to ignore them. Marc -----Original Message----- From: teawater [mailto:teawater@gmail.com] Sent: Tue 2/3/2009 12:36 AM To: Marc Khouzam Cc: gdb@sourceware.org Subject: Re: MI *stopped versus silent breakpoint =20 Hi Marc, When I try reverse-debug with MI what I got is: (gdb) reverse-finish &"reverse-finish\n" ~"Run back to call of #0 cool () at 1.c:15\n" ^running *running,thread-id=3D"all" (gdb) *stopped *running,thread-id=3D"all" ~"main () at 1.c:25\n" ~"25\t b =3D cool ();\n" *stopped (gdb) Could you give me some example about what you talk about ? Thanks, Hui On Wed, Jan 21, 2009 at 23:41, Marc Khouzam wro= te: > Hi, > > I just found out that a breakpoint can be made silent, in which case > there > is no breakpoint output when it is hit. When doing a reverse-finish > operation, a silent breakpoint is used, and when hit the inferior is > resumed > automatically, and then a single-step is done. > > In CLI, it makes it look like the inferior stopped only once, instead of > twice. > > In MI though, with the *stopped events, we do get an empty > *stopped for the silent breakpoint. So I see two *stopped events > consecutively. > > I wondered if a silent breakpoint should in fact generate a *stopped > event > or not? For a frontend, it can be confusing to see two stopped events. > FYI, what I did for DSF-GDB and reverse debugging, is to ignore empty > *stopped. > I stilled wondered about GDB though. > > Marc > > > > > > >