From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14474 invoked by alias); 15 Aug 2009 00:22:48 -0000 Received: (qmail 14444 invoked by uid 22791); 15 Aug 2009 00:22:48 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Aug 2009 00:22:40 +0000 Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id n7F0Mb9q000846 for ; Sat, 15 Aug 2009 01:22:37 +0100 Received: from gxk25 (gxk25.prod.google.com [10.202.11.25]) by spaceape7.eur.corp.google.com with ESMTP id n7F0MYIb013869 for ; Fri, 14 Aug 2009 17:22:34 -0700 Received: by gxk25 with SMTP id 25so2624220gxk.6 for ; Fri, 14 Aug 2009 17:22:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.210.7 with SMTP id i7mr3092650ybg.210.1250295754010; Fri, 14 Aug 2009 17:22:34 -0700 (PDT) In-Reply-To: <200908141602.50465.chandru@in.ibm.com> References: <200908141602.50465.chandru@in.ibm.com> Date: Sat, 15 Aug 2009 10:57:00 -0000 Message-ID: Subject: Re: [patch]: inform user that a watchpoint is hit From: Doug Evans To: Chandru Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2009-08/txt/msg00213.txt.bz2 On Fri, Aug 14, 2009 at 3:32 AM, Chandru wrote: > When a program is restarted within gdb, the initial breakpoint hit messag= es are > not outputted on to the screen. Inform the user that a watchpoint has bee= n hit > > Signed-off-by: Chandru Siddalingappa > --- > > --- gdb/breakpoint.c.orig =A0 =A0 =A0 2009-08-14 17:53:06.000000000 +0530 > +++ gdb/breakpoint.c =A0 =A02009-08-14 17:54:02.000000000 +0530 > @@ -842,6 +842,9 @@ update_watchpoint (struct breakpoint *b, > =A0 struct bp_location *loc; > =A0 bpstat bs; > > + =A0if (breakpoint_enabled (b)) > + =A0 =A0 =A0mention(b); > + > =A0 unlink_locations_from_global_list (b); > =A0 for (loc =3D b->loc; loc;) > =A0 =A0 { > Hi. If we're stopping because of a watchpoint and not reporting it, that's bad. But it seems odd that this is happening, and simple experiments don't reveal anything. Do you have a testcase?