From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4623 invoked by alias); 14 Aug 2009 10:33:08 -0000 Received: (qmail 4591 invoked by uid 22791); 14 Aug 2009 10:33:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e28smtp02.in.ibm.com (HELO e28smtp02.in.ibm.com) (59.145.155.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Aug 2009 10:32:59 +0000 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp02.in.ibm.com (8.14.3/8.13.1) with ESMTP id n7EAWthU030825 for ; Fri, 14 Aug 2009 16:02:55 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7EAWsqt1585312 for ; Fri, 14 Aug 2009 16:02:54 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n7EAWsBT028323 for ; Fri, 14 Aug 2009 20:32:54 +1000 Received: from guara.localnet (guara.in.ibm.com [9.184.145.129]) by d28av02.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n7EAWsEs028320 for ; Fri, 14 Aug 2009 20:32:54 +1000 From: Chandru To: gdb-patches@sourceware.org Subject: [patch]: inform user that a watchpoint is hit Date: Fri, 14 Aug 2009 13:15:00 -0000 User-Agent: KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; i686; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908141602.50465.chandru@in.ibm.com> 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/msg00191.txt.bz2 When a program is restarted within gdb, the initial breakpoint hit messages are not outputted on to the screen. Inform the user that a watchpoint has been hit Signed-off-by: Chandru Siddalingappa --- --- gdb/breakpoint.c.orig 2009-08-14 17:53:06.000000000 +0530 +++ gdb/breakpoint.c 2009-08-14 17:54:02.000000000 +0530 @@ -842,6 +842,9 @@ update_watchpoint (struct breakpoint *b, struct bp_location *loc; bpstat bs; + if (breakpoint_enabled (b)) + mention(b); + unlink_locations_from_global_list (b); for (loc = b->loc; loc;) {